/usr/include/boost/context/detail
NameSizeModeActions
apply.hpp21190644editdlrm
config.hpp43830644editdlrm
disable_overload.hpp9350644editdlrm
exception.hpp9590644editdlrm
exchange.hpp7410644editdlrm
externc.hpp6700644editdlrm
fcontext.hpp11630644editdlrm
index_sequence.hpp19880644editdlrm
invoke.hpp12880644editdlrm
prefetch.hpp19510644editdlrm
tuple.hpp37090644editdlrm
Edit: /usr/include/boost/context/detail/exchange.hpp (741B)
// Copyright Oliver Kowalke 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_CONTEXT_DETAIL_EXCHANGE_H #define BOOST_CONTEXT_DETAIL_EXCHANGE_H #include #include #include #ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_PREFIX #endif namespace boost { namespace context { namespace detail { template< typename T, typename U = T > T exchange( T & t, U && nv) { T ov = std::move( t); t = std::forward< U >( nv); return ov; } }}} #ifdef BOOST_HAS_ABI_HEADERS #include BOOST_ABI_SUFFIX #endif #endif // BOOST_CONTEXT_DETAIL_EXCHANGE_H