STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

printf_traits Struct Template Reference

Traits for determining the size, in printf-ed form, of the minimum and maximum values of types. More...

#include <stlsoft_printf_traits.h>

List of all members.

Public Types

enum  {
  size_min,
  size_max,
  size
}

Static Public Methods

ss_char_a_t const * format_a ()
 Returns the appropriate printf format for the type.

ss_char_w_t const * format_w ()
 Returns the appropriate wprintf format for the type.


Detailed Description

template<typename T>
struct stlsoft::printf_traits< T >

Traits for determining the size, in printf-ed form, of the minimum and maximum values of types.

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.

  printf_traits<ss_sint16_t>::size_min == 6
  printf_traits<ss_sint16_t>::size_max == 7
  printf_traits<ss_sint16_t>::size == 7

Parameters:
T  The type


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
size_min  The number of characters (& null) in the minimum value.
size_max  The number of characters (& null) in the maximum value.
size  The maximum of size_min and size_max.


Member Function Documentation

ss_char_a_t const* format_a   [static]
 

Returns the appropriate printf format for the type.

ss_char_w_t const* format_w   [static]
 

Returns the appropriate wprintf format for the type.


The documentation for this struct was generated from the following file:

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004