Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:41:39

0001 
0002 #ifndef BOOST_MPL_AUX_UNWRAP_HPP_INCLUDED
0003 #define BOOST_MPL_AUX_UNWRAP_HPP_INCLUDED
0004 
0005 // Copyright Peter Dimov and Multi Media Ltd 2001, 2002
0006 // Copyright David Abrahams 2001
0007 //
0008 // Distributed under the Boost Software License, Version 1.0. 
0009 // (See accompanying file LICENSE_1_0.txt or copy at 
0010 // http://www.boost.org/LICENSE_1_0.txt)
0011 //
0012 // See http://www.boost.org/libs/mpl for documentation.
0013 
0014 // $Id$
0015 // $Date$
0016 // $Revision$
0017 
0018 #include <boost/ref.hpp>
0019 #include <boost/mpl/aux_/config/gpu.hpp>
0020 
0021 namespace boost { namespace mpl { namespace aux {
0022 
0023 template< typename F >
0024 BOOST_MPL_CFG_GPU_ENABLED
0025 inline
0026 F& unwrap(F& f, long)
0027 {
0028     return f;
0029 }
0030 
0031 template< typename F >
0032 BOOST_MPL_CFG_GPU_ENABLED
0033 inline
0034 F&
0035 unwrap(reference_wrapper<F>& f, int)
0036 {
0037     return f;
0038 }
0039 
0040 template< typename F >
0041 BOOST_MPL_CFG_GPU_ENABLED
0042 inline
0043 F&
0044 unwrap(reference_wrapper<F> const& f, int)
0045 {
0046     return f;
0047 }
0048 
0049 }}}
0050 
0051 #endif // BOOST_MPL_AUX_UNWRAP_HPP_INCLUDED