New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
unwrap.hpp in vendors/XIOS/current/extern/boost/include/boost/mpl/aux_ – NEMO

source: vendors/XIOS/current/extern/boost/include/boost/mpl/aux_/unwrap.hpp @ 3408

Last change on this file since 3408 was 3408, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

  • Property svn:keywords set to Id
File size: 865 bytes
Line 
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: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $
16// $Revision: 49267 $
17
18#include <boost/ref.hpp>
19
20namespace boost { namespace mpl { namespace aux {
21
22template< typename F >
23inline
24F& unwrap(F& f, long)
25{
26    return f;
27}
28
29template< typename F >
30inline
31F&
32unwrap(reference_wrapper<F>& f, int)
33{
34    return f;
35}
36
37template< typename F >
38inline
39F&
40unwrap(reference_wrapper<F> const& f, int)
41{
42    return f;
43}
44
45}}}
46
47#endif // BOOST_MPL_AUX_UNWRAP_HPP_INCLUDED
Note: See TracBrowser for help on using the repository browser.