sign_traits Struct Template Reference
[Utility Library]

#include <stlsoft/util/sign_traits.hpp>

List of all members.


Detailed Description

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

Traits for determining the signed, unsigned and alternate-signed type.

sign_traits is a traits class for acquiring the corresponding signed, unsigned, and alternate-signed type eg.

  assert(stlsoft::is_same_type<stlsoft::sign_traits<ss_sint16_t>::signed_type, ss_sint16_t>::value);
  assert(stlsoft::is_same_type<stlsoft::sign_traits<ss_sint16_t>::unsigned_type, ss_uint16_t>::value);
  assert(stlsoft::is_same_type<stlsoft::sign_traits<ss_sint16_t>::alt_sign_type, ss_uint16_t>::value);

Parameters:
T The char type

Public Types

enum  { bytes = 0 }
enum  { bits = 0 }
typedef T type
typedef signed T signed_type
 The signed type.
typedef unsigned T unsigned_type
 The unsigned type.
typedef unsigned T alt_sign_type
 The alternate-signed type.

Member Typedef Documentation

typedef signed T signed_type

The signed type.

typedef unsigned T unsigned_type

The unsigned type.

typedef unsigned T alt_sign_type

The alternate-signed type.


Member Enumeration Documentation

anonymous enum

Enumerator:
bytes  The type size, in bytes.

anonymous enum

Enumerator:
bits  The type size, in bits.


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

Generated on Thu Jun 10 08:59:03 2010 for STLSoft by  doxygen 1.5.6