1
2#ifndef BOOST_MPL_AUX_UNWRAP_HPP_INCLUDED
3#define BOOST_MPL_AUX_UNWRAP_HPP_INCLUDED
4
5// Copyright Peter Dimov and Multi Media Ltd 2001, 2002
6// Copyright David Abrahams 2001
7//
8// Distributed under the Boost Software License, Version 1.0.
9// (See accompanying file LICENSE_1_0.txt or copy at
10// http://www.boost.org/LICENSE_1_0.txt)
11//
12// See http://www.boost.org/libs/mpl for documentation.
13
14// $Id$
15// $Date$
16// $Revision$
17
18#include <boost/ref.hpp>
19#include <boost/mpl/aux_/config/gpu.hpp>
20
21namespace boost { namespace mpl { namespace aux {
22
23template< typename F >
24BOOST_MPL_CFG_GPU_ENABLED
25inline
26F& unwrap(F& f, long)
27{
28 return f;
29}
30
31template< typename F >
32BOOST_MPL_CFG_GPU_ENABLED
33inline
34F&
35unwrap(reference_wrapper<F>& f, int)
36{
37 return f;
38}
39
40template< typename F >
41BOOST_MPL_CFG_GPU_ENABLED
42inline
43F&
44unwrap(reference_wrapper<F> const& f, int)
45{
46 return f;
47}
48
49}}}
50
51#endif // BOOST_MPL_AUX_UNWRAP_HPP_INCLUDED
52

source code of include/boost/mpl/aux_/unwrap.hpp