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_unsigned is_unsigned]
11 struct is_unsigned : public __tof {};
13 __inherit If T is an unsigned integer type or an enumerated type with an
14 underlying unsigned integer type, then inherits from __true_type,
15 otherwise inherits from __false_type.
21 __header ` #include <boost/type_traits/is_unsigned.hpp>` or ` #include <boost/type_traits.hpp>`
25 [:`is_unsigned<unsigned int>` inherits from `__true_type`.]
27 [:`is_unsigned<unsigned int const volatile>::type` is the type `__true_type`.]
29 [:`is_unsigned<int>::value` is an integral constant
30 expression that evaluates to /false/.]
32 [:`is_unsigned<myclass>::value` is an integral constant
33 expression that evaluates to /false/.]
35 [:`is_unsigned<char>::value` is an integral constant
36 expression whose value depends upon the signedness of type `char`.]
38 [:`is_unsigned<unsigned long long>::value` is an integral constant
39 expression that evaluates to /true/.]
41 [:`is_unsigned<T>::value_type` is the type `bool`.]