/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/invoke.hpp (1288B)
// 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_INVOKE_H #define BOOST_CONTEXT_DETAIL_INVOKE_H #include #include #include #include #include #ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_PREFIX #endif namespace boost { namespace context { namespace detail { template< typename Fn, typename ... Args > typename std::enable_if< std::is_member_pointer< typename std::decay< Fn >::type >::value, typename std::result_of< Fn &&( Args && ... ) >::type >::type invoke( Fn && fn, Args && ... args) { return std::mem_fn( fn)( std::forward< Args >( args) ... ); } template< typename Fn, typename ... Args > typename std::enable_if< ! std::is_member_pointer< typename std::decay< Fn >::type >::value, typename std::result_of< Fn &&( Args && ... ) >::type >::type invoke( Fn && fn, Args && ... args) { return std::forward< Fn >( fn)( std::forward< Args >( args) ... ); } }}} #ifdef BOOST_HAS_ABI_HEADERS #include BOOST_ABI_SUFFIX #endif #endif // BOOST_CONTEXT_DETAIL_INVOKE_H