Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:38:14

0001 /*=============================================================================
0002     Copyright (c) 2014 Paul Fultz II
0003     unwrap.h
0004     Distributed under the Boost Software License, Version 1.0. (See accompanying
0005     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 ==============================================================================*/
0007 
0008 #ifndef BOOST_HOF_GUARD_UNWRAP_H
0009 #define BOOST_HOF_GUARD_UNWRAP_H
0010 
0011 #include <type_traits>
0012 #include <functional>
0013 
0014 namespace boost { namespace hof { namespace detail {
0015 
0016 template <class T>
0017 struct unwrap_reference
0018 {
0019     typedef T type;
0020 };
0021 template <class T>
0022 struct unwrap_reference<std::reference_wrapper<T>>
0023 {
0024     typedef T& type;
0025 };
0026 
0027 }}} // namespace boost::hof
0028 
0029 #endif