Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:28

0001 #ifndef BOOST_CORE_DETAIL_IS_SAME_HPP_INCLUDED
0002 #define BOOST_CORE_DETAIL_IS_SAME_HPP_INCLUDED
0003 
0004 // is_same<T1,T2>::value is true when T1 == T2
0005 //
0006 // Copyright 2014 Peter Dimov
0007 //
0008 // Distributed under the Boost Software License, Version 1.0.
0009 // See accompanying file LICENSE_1_0.txt or copy at
0010 // http://www.boost.org/LICENSE_1_0.txt
0011 
0012 #include <boost/config.hpp>
0013 
0014 #if defined(BOOST_HAS_PRAGMA_ONCE)
0015 # pragma once
0016 #endif
0017 
0018 namespace boost
0019 {
0020 namespace core
0021 {
0022 namespace detail
0023 {
0024 
0025 template< class T1, class T2 > struct is_same
0026 {
0027     BOOST_STATIC_CONSTANT( bool, value = false );
0028 };
0029 
0030 template< class T > struct is_same< T, T >
0031 {
0032     BOOST_STATIC_CONSTANT( bool, value = true );
0033 };
0034 
0035 } // namespace detail
0036 } // namespace core
0037 } // namespace boost
0038 
0039 #endif // #ifndef BOOST_CORE_DETAIL_IS_SAME_HPP_INCLUDED