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:make_unsigned make_unsigned]
16 __type If T is a unsigned integer type then the same type as T, if T is an
17 signed integer type then the corresponding unsigned type.
18 Otherwise if T is an enumerated or
19 character type (char or wchar_t) then an unsigned integer type with the same
22 If T has any cv-qualifiers then these are also present on the result type.
24 [*Requires:] T must be an integer or enumerated type, and must not be the type
31 __header ` #include <boost/type_traits/make_unsigned.hpp>` or ` #include <boost/type_traits.hpp>`
35 [ [Expression] [Result Type]]
37 [[`make_unsigned<int>::type`][`unsigned int`]]
39 [[`make_unsigned<unsigned int const>::type`] [`unsigned int const`]]
41 [[`make_unsigned<const unsigned long long>::type`] [`const unsigned long long`]]
43 [[`make_unsigned<my_enum>::type`] [An unsigned integer type with the same width as the enum.]]
44 [[`make_unsigned<wchar_t>::type`] [An unsigned integer type with the same width as wchar_t.]]