tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
make_signed< Type > Struct Template Reference

If T is an integral (except bool) or enumeration type, provides the member typedef type which is the unsigned integer type corresponding to T, with the same cv-qualifiers. If T is signed or unsigned char, short, int, long, long long; the unsigned type from this list corresponding to T is provided. The behavior of a program that adds specializations for make_signed is undefined. More...

#include <make_signed.hpp>

Inheritance diagram for make_signed< Type >:

Detailed Description

template<typename Type>
struct etl::make_signed< Type >

If T is an integral (except bool) or enumeration type, provides the member typedef type which is the unsigned integer type corresponding to T, with the same cv-qualifiers. If T is signed or unsigned char, short, int, long, long long; the unsigned type from this list corresponding to T is provided. The behavior of a program that adds specializations for make_signed is undefined.

// Convert an unsigned int to signed int
static_assert(is_same_v<make_signed_t<unsigned>, int>);
constexpr bool is_same_v
Definition is_same.hpp:11

The documentation for this struct was generated from the following file: