]> AND Private Git Repository - canny.git/blob - stc/exp/ml_stc_linux_make_v1.0/include/boost/mpl/aux_/unwrap.hpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
db19c0f2e683c5c89e6437c4ff4a31180a391c13
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / include / boost / mpl / aux_ / unwrap.hpp
1 \r
2 #ifndef BOOST_MPL_AUX_UNWRAP_HPP_INCLUDED\r
3 #define BOOST_MPL_AUX_UNWRAP_HPP_INCLUDED\r
4 \r
5 // Copyright Peter Dimov and Multi Media Ltd 2001, 2002\r
6 // Copyright David Abrahams 2001\r
7 //\r
8 // Distributed under the Boost Software License, Version 1.0. \r
9 // (See accompanying file LICENSE_1_0.txt or copy at \r
10 // http://www.boost.org/LICENSE_1_0.txt)\r
11 //\r
12 // See http://www.boost.org/libs/mpl for documentation.\r
13 \r
14 // $Id: unwrap.hpp 49267 2008-10-11 06:19:02Z agurtovoy $\r
15 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $\r
16 // $Revision: 49267 $\r
17 \r
18 #include <boost/ref.hpp>\r
19 \r
20 namespace boost { namespace mpl { namespace aux {\r
21 \r
22 template< typename F >\r
23 inline\r
24 F& unwrap(F& f, long)\r
25 {\r
26     return f;\r
27 }\r
28 \r
29 template< typename F >\r
30 inline\r
31 F&\r
32 unwrap(reference_wrapper<F>& f, int)\r
33 {\r
34     return f;\r
35 }\r
36 \r
37 template< typename F >\r
38 inline\r
39 F&\r
40 unwrap(reference_wrapper<F> const& f, int)\r
41 {\r
42     return f;\r
43 }\r
44 \r
45 }}}\r
46 \r
47 #endif // BOOST_MPL_AUX_UNWRAP_HPP_INCLUDED\r