string_traits Struct Template Reference
[String Library]

#include <stlsoft/string/string_traits_fwd.hpp>

List of all members.


Detailed Description

template<typename C>
struct stlsoft::string_traits< C >

Traits for determining the characteristics of strings.

string_traits is a traits class for determining various characteristics of strings.

Parameters:
C The char type

Public Types

enum  { is_pointer }
enum  { is_pointer_to_const }
enum  { char_type_size }
enum  { is_mutating }
typedef C value_type
 The value type.
typedef C char_type
 The char type.
typedef size_t size_type
 The size type.

Static Public Member Functions

static string_type empty_string ()
 Returns an instance of the empty string form of the string type.
static string_type construct (string_type const &src, size_type pos, size_type len)
 Constructs an instance of the string type.
template<typename I>
static string_typeassign_inplace (string_type &str, I first, I last)
 Assigns a new value to the string, based on the range [first, last).

Public Attributes

typedef string_type
 The string type.
typedef iterator
 The iterator type. Not defined for non-mutating type.
typedef const_iterator
 The const_iterator type.
typedef pointer
 The pointer type. Not defined for non-mutating type.
typedef const_pointer
 The const_pointer type.

Member Typedef Documentation

typedef C value_type

The value type.

typedef C char_type

The char type.

typedef size_t size_type

The size type.


Member Enumeration Documentation

anonymous enum

Enumerator:
is_pointer  non-zero if C is a pointer type

anonymous enum

Enumerator:
is_pointer_to_const  non-zero if C is a pointer-to-const type

anonymous enum

Enumerator:
char_type_size  The size of char_type.

anonymous enum

Enumerator:
is_mutating  non-zero if C is a mutating type


Member Function Documentation

static string_type empty_string (  )  [static]

Returns an instance of the empty string form of the string type.

static string_type construct ( string_type const &  src,
size_type  pos,
size_type  len 
) [static]

Constructs an instance of the string type.

static string_type& assign_inplace ( string_type str,
first,
last 
) [inline, static]

Assigns a new value to the string, based on the range [first, last).

Note:
The range [first, last) may be contained within the string instance


Member Data Documentation

typedef string_type

The string type.

typedef iterator

The iterator type. Not defined for non-mutating type.

typedef const_iterator

The const_iterator type.

typedef pointer

The pointer type. Not defined for non-mutating type.

typedef const_pointer

The const_pointer type.


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

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