Ticket #11628: test2.C

File test2.C, 429 bytes (added by benjamin.redelings@…, 7 years ago)

test case

Line 
1#include <vector>
2#include <iostream>
3#include <boost/container/small_vector.hpp>
4
5//typedef std::vector<int> vec;
6typedef boost::container::small_vector<int,10> vec;
7
8int main()
9{
10 vec v = {1,2,3,4,5,6,7,8,9,10,11};
11 vec w;
12 std::cout<<"v.size() = "<<v.size()<<" w.size() = "<<w.size()<<"\n";
13 std::cout<<" swapping v and w ...\n";
14 v.swap(w);
15 std::cout<<"v.size() = "<<v.size()<<" w.size() = "<<w.size()<<"\n";
16}
17