| 1 | #ifndef BOOST_BIND_DETAIL_IS_SAME_HPP_INCLUDED |
| 2 | #define BOOST_BIND_DETAIL_IS_SAME_HPP_INCLUDED |
| 3 | |
| 4 | // is_same<T1,T2>::value is true when T1 == T2 |
| 5 | // |
| 6 | // Copyright 2014 Peter Dimov |
| 7 | // |
| 8 | // Distributed under the Boost Software License, Version 1.0. |
| 9 | // See accompanying file LICENSE_1_0.txt or copy at |
| 10 | // http://www.boost.org/LICENSE_1_0.txt |
| 11 | |
| 12 | #include <boost/config.hpp> |
| 13 | |
| 14 | #if defined(BOOST_HAS_PRAGMA_ONCE) |
| 15 | # pragma once |
| 16 | #endif |
| 17 | |
| 18 | namespace boost |
| 19 | { |
| 20 | namespace _bi |
| 21 | { |
| 22 | |
| 23 | template< class T1, class T2 > struct is_same |
| 24 | { |
| 25 | BOOST_STATIC_CONSTANT( bool, value = false ); |
| 26 | }; |
| 27 | |
| 28 | template< class T > struct is_same< T, T > |
| 29 | { |
| 30 | BOOST_STATIC_CONSTANT( bool, value = true ); |
| 31 | }; |
| 32 | |
| 33 | } // namespace _bi |
| 34 | } // namespace boost |
| 35 | |
| 36 | #endif // #ifndef BOOST_BIND_DETAIL_IS_SAME_HPP_INCLUDED |
| 37 | |