#include <stlsoft/util/limit_traits.h>
limit_traits is a traits class for acquiring the minimum and maximum values of types.
assert(stlsoft::limit_traits<ss_sint16_t>::minimum() == -32768); assert(stlsoft::limit_traits<ss_sint16_t>::maximum() == 32767);
T | The type |
Public Types | |
typedef T | value_type |
The value type. | |
Static Public Member Functions | |
static value_type | minimum () |
Returns the minimum value for the type. | |
static value_type | maximum () |
Returns the maximum value for the type. |
typedef T value_type |
The value type.
static value_type minimum | ( | ) | [static] |
Returns the minimum value for the type.
static value_type maximum | ( | ) | [static] |
Returns the maximum value for the type.