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/algorithm.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);
21 bc::vector<movable> v2(10);
24 boost::move(v.begin(), v.end(), v2.begin());
26 //Test values have been moved
40 boost::move_backward(v2.begin(), v2.end(), v.end());
42 //Test values have been moved
58 #include <boost/move/detail/config_end.hpp>