1 // (C) Copyright Daniel Wallin 2004.
2 // Distributed under the Boost Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
5 // Contains the definitions of the class template move_source and the function
6 // template move, which together make move pointers moveable.
8 #ifndef BOOST_MOVE_HPP_INCLUDED
9 #define BOOST_MOVE_HPP_INCLUDED
11 namespace boost { namespace ptr_container_detail {
15 template<typename Ptr>
18 move_source(Ptr& ptr) : ptr_(ptr) {}
19 Ptr& ptr() const { return ptr_; }
22 move_source(const Ptr&);
25 } // End namespace move_ptrs.
29 move_ptrs::move_source<T> move(T& x)
30 { return move_ptrs::move_source<T>(x); }
32 } // namespace 'ptr_container_detail'
33 } // End namespace boost.
35 #endif // #ifndef BOOST_MOVE_HPP_INCLUDED