boost array的使用

来源:互联网 发布:淘宝买家旺旺提取神器 编辑:程序博客网 时间:2024/06/03 16:55

boost array的使用

#include <string>#include <iostream>#include <boost/array.hpp>#include <algorithm>using namespace std;int main(){    boost::array<int, 5> array_temp = {{12, 8, 45, 23, 9}};    sort(array_temp.begin(), array_temp.end());            copy(array_temp.begin(), array_temp.end(), ostream_iterator<int>(cout, " "));            return 0;}


原创粉丝点击