Class width
Synopsis
#include "breeze/meta/width.hpp"
template< typename T >
class width
: public constant< int, has_sign< T >::value
? precision< T >::value + 1
: precision< T >::value >
Description
Metafunction yielding the width of a type.
The width of T
is the number of bits that T
uses to represent values, including any sign but excluding any padding bits.
This is a meta::constant, with value_type
int
.
- See
- meta::precision and meta::padding.
- Type requirements
\c T shall be an integral type or a cv-qualified version thereof.
Inheritance
Ancestors: constant
Source
Lines 42-48 in breeze/meta/width.hpp.
template< typename T >
class width
: public constant< int, has_sign< T >::value
? precision< T >::value + 1
: precision< T >::value >
{
} ;