Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:01:42

0001 #ifndef BOOST_TYPE_TRAITS_TYPE_IDENTITY_HPP_INCLUDED
0002 #define BOOST_TYPE_TRAITS_TYPE_IDENTITY_HPP_INCLUDED
0003 
0004 //
0005 //  Copyright 2015 Peter Dimov
0006 //
0007 //  Distributed under the Boost Software License, Version 1.0.
0008 //  See accompanying file LICENSE_1_0.txt or copy at
0009 //  http://www.boost.org/LICENSE_1_0.txt
0010 //
0011 
0012 #include <boost/config.hpp>
0013 
0014 namespace boost
0015 {
0016 
0017 template<class T> struct type_identity
0018 {
0019     typedef T type;
0020 };
0021 
0022 #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
0023 
0024 template <class T> using type_identity_t = typename type_identity<T>::type;
0025 
0026 #endif
0027 
0028 
0029 } // namespace boost
0030 
0031 #endif // #ifndef BOOST_TYPE_TRAITS_TYPE_IDENTITY_HPP_INCLUDED