epoc32/include/stdapis/boost/mpl/aux_/unwrap.hpp
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
williamr@2
     1
williamr@2
     2
#ifndef BOOST_MPL_AUX_UNWRAP_HPP_INCLUDED
williamr@2
     3
#define BOOST_MPL_AUX_UNWRAP_HPP_INCLUDED
williamr@2
     4
williamr@2
     5
// Copyright Peter Dimov and Multi Media Ltd 2001, 2002
williamr@2
     6
// Copyright David Abrahams 2001
williamr@2
     7
//
williamr@2
     8
// Distributed under the Boost Software License, Version 1.0. 
williamr@2
     9
// (See accompanying file LICENSE_1_0.txt or copy at 
williamr@2
    10
// http://www.boost.org/LICENSE_1_0.txt)
williamr@2
    11
//
williamr@2
    12
// See http://www.boost.org/libs/mpl for documentation.
williamr@2
    13
williamr@2
    14
// $Source: /cvsroot/boost/boost/boost/mpl/aux_/unwrap.hpp,v $
williamr@2
    15
// $Date: 2004/09/02 15:40:44 $
williamr@2
    16
// $Revision: 1.3 $
williamr@2
    17
williamr@2
    18
#include <boost/ref.hpp>
williamr@2
    19
williamr@2
    20
namespace boost { namespace mpl { namespace aux {
williamr@2
    21
williamr@2
    22
template< typename F >
williamr@2
    23
inline
williamr@2
    24
F& unwrap(F& f, long)
williamr@2
    25
{
williamr@2
    26
    return f;
williamr@2
    27
}
williamr@2
    28
williamr@2
    29
template< typename F >
williamr@2
    30
inline
williamr@2
    31
F&
williamr@2
    32
unwrap(reference_wrapper<F>& f, int)
williamr@2
    33
{
williamr@2
    34
    return f;
williamr@2
    35
}
williamr@2
    36
williamr@2
    37
template< typename F >
williamr@2
    38
inline
williamr@2
    39
F&
williamr@2
    40
unwrap(reference_wrapper<F> const& f, int)
williamr@2
    41
{
williamr@2
    42
    return f;
williamr@2
    43
}
williamr@2
    44
williamr@2
    45
}}}
williamr@2
    46
williamr@2
    47
#endif // BOOST_MPL_AUX_UNWRAP_HPP_INCLUDED