影の疾风 发表于 2017-6-2 11:07:35

boost array的使用

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;
}
页: [1]
查看完整版本: boost array的使用