Files
externals/linux/include/ActivBoost/core/is_same.hpp
T
2023-12-15 13:15:08 -05:00

41 lines
828 B
C++

#ifndef ACTIV_BOOST_CORE_IS_SAME_HPP_INCLUDED
#define ACTIV_BOOST_CORE_IS_SAME_HPP_INCLUDED
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif
// is_same<T1,T2>::value is true when T1 == T2
//
// Copyright 2014 Peter Dimov
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#include <ActivBoost/config.hpp>
namespace Boost
{
namespace core
{
template< class T1, class T2 > struct is_same
{
ACTIV_BOOST_STATIC_CONSTANT( bool, value = false );
};
template< class T > struct is_same< T, T >
{
ACTIV_BOOST_STATIC_CONSTANT( bool, value = true );
};
} // namespace core
} // namespace Boost
#endif // #ifndef ACTIV_BOOST_CORE_IS_SAME_HPP_INCLUDED