Class padding

Synopsis

#include "breeze/meta/padding.hpp"

template< typename T >
class padding
    :   public constant< int,
                         width< unsigned char >::value * sizeof( T ) -
                         width< T             >::value
                       >

Description

Metafunction yielding the number of padding bits of a type.

This is a meta::constant, with value_type int.

See
meta::precision and meta::width.
Type requirements
T shall be an integral type or a cv-qualified version thereof.

Inheritance

Ancestors: constant

Source

Lines 39-46 in breeze/meta/padding.hpp. Line 40 in breeze/meta/padding.hpp.

template< typename T >
class padding
    :   public constant< int,
                         width< unsigned char >::value * sizeof( T ) -
                         width< T             >::value
                       >
{
} ;