1 //////////////////////////////////////////////////////////////////////////////
3 // (C) Copyright David Abrahams, Vicente Botet, Ion Gaztanaga 2009.
4 // Distributed under the Boost Software License, Version 1.0.
5 // (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
8 // See http://www.boost.org/libs/move for documentation.
10 //////////////////////////////////////////////////////////////////////////////
11 #include <boost/move/detail/config_begin.hpp>
12 #include <boost/move/iterator.hpp>
13 #include <boost/container/vector.hpp>
14 #include "../example/movable.hpp"
18 namespace bc = ::boost::container;
19 //Default construct 10 movable objects
20 bc::vector<movable> v(10);
22 //Test default constructed value
28 bc::vector<movable> v2
29 (boost::make_move_iterator(v.begin()), boost::make_move_iterator(v.end()));
31 //Test values have been moved
41 v.assign(boost::make_move_iterator(v2.begin()), boost::make_move_iterator(v2.end()));
43 //Test values have been moved
55 #include <boost/move/detail/config_end.hpp>