Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/core/is_same.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
parents | f46d142149f5 |
children |
rev | line source |
---|---|
Chris@102 | 1 #ifndef BOOST_CORE_IS_SAME_HPP_INCLUDED |
Chris@102 | 2 #define BOOST_CORE_IS_SAME_HPP_INCLUDED |
Chris@102 | 3 |
Chris@102 | 4 // MS compatible compilers support #pragma once |
Chris@102 | 5 |
Chris@102 | 6 #if defined(_MSC_VER) && (_MSC_VER >= 1020) |
Chris@102 | 7 # pragma once |
Chris@102 | 8 #endif |
Chris@102 | 9 |
Chris@102 | 10 // is_same<T1,T2>::value is true when T1 == T2 |
Chris@102 | 11 // |
Chris@102 | 12 // Copyright 2014 Peter Dimov |
Chris@102 | 13 // |
Chris@102 | 14 // Distributed under the Boost Software License, Version 1.0. |
Chris@102 | 15 // See accompanying file LICENSE_1_0.txt or copy at |
Chris@102 | 16 // http://www.boost.org/LICENSE_1_0.txt |
Chris@102 | 17 |
Chris@102 | 18 #include <boost/config.hpp> |
Chris@102 | 19 |
Chris@102 | 20 namespace boost |
Chris@102 | 21 { |
Chris@102 | 22 |
Chris@102 | 23 namespace core |
Chris@102 | 24 { |
Chris@102 | 25 |
Chris@102 | 26 template< class T1, class T2 > struct is_same |
Chris@102 | 27 { |
Chris@102 | 28 BOOST_STATIC_CONSTANT( bool, value = false ); |
Chris@102 | 29 }; |
Chris@102 | 30 |
Chris@102 | 31 template< class T > struct is_same< T, T > |
Chris@102 | 32 { |
Chris@102 | 33 BOOST_STATIC_CONSTANT( bool, value = true ); |
Chris@102 | 34 }; |
Chris@102 | 35 |
Chris@102 | 36 } // namespace core |
Chris@102 | 37 |
Chris@102 | 38 } // namespace boost |
Chris@102 | 39 |
Chris@102 | 40 #endif // #ifndef BOOST_CORE_IS_SAME_HPP_INCLUDED |