Class exact_width_integer

Synopsis

#include "breeze/meta/exact_width_integer.hpp"

template< int width, typename T /* gps temp = signed */ >
class exact_width_integer

Description

Provides, if available, an integer type with width width.

Differently from intN_t in C99, it can have padding and, until C++20, can use a representation different from two's complement.

If a type with width width is not available, the program is ill-formed.

Type requirements
T shall be either signed int or unsigned int.

Source

Lines 79-85 in breeze/meta/exact_width_integer.hpp.

template< int width, typename T /* gps temp = signed */ >
class exact_width_integer
{
public:
    typedef typename exact_width_integer_private
                         ::selector< width, T, 0 >::type type ;
} ;