2 Copyright 2007 John Maddock.
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt).
8 [section:is_same is_same]
9 template <class T, class U>
10 struct is_same : public __tof {};
12 __inherit If T and U are the same types then inherits from
13 __true_type, otherwise inherits from __false_type.
15 __header ` #include <boost/type_traits/is_same.hpp>` or ` #include <boost/type_traits.hpp>`
22 [:`is_same<int, int>` inherits from `__true_type`.]
24 [:`is_same<int, int>::type` is the type `__true_type`.]
26 [:`is_same<int, int>::value` is an integral constant
27 expression that evaluates to /true/.]
29 [:`is_same<int const, int>::value` is an integral constant
30 expression that evaluates to /false/.]
32 [:`is_same<int&, int>::value` is an integral constant
33 expression that evaluates to /false/.]
35 [:`is_same<T, T>::value_type` is the type `bool`.]