std::make_unsigned

From Cppreference

Jump to: navigation, search
Defined in header <type_traits>

template< class T >
struct make_unsigned;
(C++11 feature)

Given an integral (except bool) or enumeration type T, provides the member typedef type which is the unsigned integer type corresponding to T, with the same cv-qualifiers.

[edit] Member types

Name Definition
type the unsigned integer type corresponding to T

[edit] Example

[edit] See also

is_signed (C++11)
checks if a type is signed arithmetic type
(class template)
is_unsigned (C++11)
checks if a type is unsigned arithmetic type
(class template)
make_signed (C++11)
makes the given integral type signed
(class template)