1
// Distributed under the Boost Software License, Version 1.0. (See
2
// accompanying file LICENSE_1_0.txt or copy at
3
// http://www.boost.org/LICENSE_1_0.txt)
4
// (C) Copyright 2007-8 Anthony Williams
6
#ifndef BOOST_THREAD_MOVE_HPP
7
#define BOOST_THREAD_MOVE_HPP
9
#ifndef BOOST_NO_SFINAE
10
#include <boost/utility/enable_if.hpp>
11
#include <boost/type_traits/is_convertible.hpp>
14
#include <boost/config/abi_prefix.hpp>
24
explicit thread_move_t(T& t_):
38
void operator=(thread_move_t&);
42
#ifndef BOOST_NO_SFINAE
44
typename enable_if<boost::is_convertible<T&,detail::thread_move_t<T> >, detail::thread_move_t<T> >::type move(T& t)
46
return detail::thread_move_t<T>(t);
51
detail::thread_move_t<T> move(detail::thread_move_t<T> t)
58
#include <boost/config/abi_suffix.hpp>