#include <stlsoft/util/integral_printf_traits.hpp>
integral_printf_traits is a traits class for acquiring enum values representing the lengths, when expressed in string form, of the minimum and maximum values of the type, and the maximum of the two. The lengths are inclusive of the null terminator.
assert(stlsoft::integral_printf_traits<ss_sint16_t>::size_min == 6); assert(stlsoft::integral_printf_traits<ss_sint16_t>::size_max == 7); assert(stlsoft::integral_printf_traits<ss_sint16_t>::size == 7);
T | The type |
Public Types | |
enum | { size_min, size_max, size } |
Static Public Member Functions | |
static char const * | format_a () |
Returns the appropriate integral printf format for the type. | |
static wchar_t const * | format_w () |
Returns the appropriate integral wprintf format for the type. | |
static char const * | hex_format_a () |
Returns the appropriate hexadecimal printf format for the type. | |
static wchar_t const * | hex_format_w () |
Returns the appropriate hexadecimal wprintf format for the type. |
anonymous enum |
static char const* format_a | ( | ) | [static] |
Returns the appropriate integral printf format for the type.
static wchar_t const* format_w | ( | ) | [static] |
Returns the appropriate integral wprintf format for the type.
static char const* hex_format_a | ( | ) | [static] |
Returns the appropriate hexadecimal printf format for the type.
static wchar_t const* hex_format_w | ( | ) | [static] |
Returns the appropriate hexadecimal wprintf format for the type.