std::make_signed

From Cppreference

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

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

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

[edit] Member types

Name Definition
type the signed 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_unsigned (C++11)
makes the given integral type unsigned
(class template)