#include <stlsoft/util/printf_traits.hpp>
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::printf_traits<ss_sint16_t>::size_min == 6); assert(stlsoft::printf_traits<ss_sint16_t>::size_max == 7); assert(stlsoft::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 printf format for the type. | |
static wchar_t const * | format_w () |
Returns the appropriate wprintf format for the type. |
anonymous enum |
static char const* format_a | ( | ) | [static] |
Returns the appropriate printf format for the type.
static wchar_t const* format_w | ( | ) | [static] |
Returns the appropriate wprintf format for the type.