- 注册时间
- 2011-3-6
- 最后登录
- 1970-1-1
该用户从未签到
|
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;
} |
|