Whole document tree
    

Whole document tree

Templatestd::char_traits struct Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::char_traits< _CharT > Struct Template Reference

21.1.2 Basis for explicit _Traits specialization NB: That for any given actual character type this definition is probably wrong. More...

#include <char_traits.h>

List of all members.

Public Types

typedef _CharT char_type
typedef unsigned long int_type
typedef streampos pos_type
typedef streamoff off_type
typedef mbstate_t state_type

Static Public Methods

void assign (char_type &__c1, const char_type &__c2)
bool eq (const char_type &__c1, const char_type &__c2)
bool lt (const char_type &__c1, const char_type &__c2)
int compare (const char_type *__s1, const char_type *__s2, size_t __n)
size_t length (const char_type *__s)
const char_typefind (const char_type *__s, size_t __n, const char_type &__a)
char_typemove (char_type *__s1, const char_type *__s2, size_t __n)
char_typecopy (char_type *__s1, const char_type *__s2, size_t __n)
char_typeassign (char_type *__s, size_t __n, char_type __a)
char_type to_char_type (const int_type &__c)
int_type to_int_type (const char_type &__c)
bool eq_int_type (const int_type &__c1, const int_type &__c2)
int_type eof ()
int_type not_eof (const int_type &__c)


Detailed Description

template<class _CharT>
struct std::char_traits< _CharT >

21.1.2 Basis for explicit _Traits specialization NB: That for any given actual character type this definition is probably wrong.

Definition at line 48 of file char_traits.h.


Member Typedef Documentation

template<class _CharT>
typedef _CharT std::char_traits< _CharT >::char_type
 

Definition at line 50 of file char_traits.h.

Referenced by std::char_traits< char >::assign(), std::char_traits< _CharT >::assign(), std::char_traits< char >::compare(), std::char_traits< _CharT >::compare(), std::char_traits< char >::copy(), std::char_traits< _CharT >::copy(), std::char_traits< char >::eq(), std::char_traits< _CharT >::eq(), std::char_traits< char >::find(), std::char_traits< _CharT >::find(), std::char_traits< char >::length(), std::char_traits< _CharT >::length(), std::char_traits< char >::lt(), std::char_traits< _CharT >::lt(), std::char_traits< char >::move(), std::char_traits< _CharT >::move(), std::char_traits< _CharT >::to_char_type(), std::char_traits< char >::to_int_type(), and std::char_traits< _CharT >::to_int_type().

template<class _CharT>
typedef unsigned long std::char_traits< _CharT >::int_type
 

Definition at line 52 of file char_traits.h.

Referenced by std::char_traits< char >::eq_int_type(), std::char_traits< _CharT >::eq_int_type(), std::char_traits< char >::not_eof(), std::char_traits< _CharT >::not_eof(), std::char_traits< char >::to_char_type(), std::char_traits< _CharT >::to_char_type(), and std::char_traits< _CharT >::to_int_type().

template<class _CharT>
typedef streamoff std::char_traits< _CharT >::off_type
 

Definition at line 54 of file char_traits.h.

template<class _CharT>
typedef streampos std::char_traits< _CharT >::pos_type
 

Definition at line 53 of file char_traits.h.

template<class _CharT>
typedef mbstate_t std::char_traits< _CharT >::state_type
 

Definition at line 55 of file char_traits.h.


Member Function Documentation

template<class _CharT>
char_type* std::char_traits< _CharT >::assign char_type   __s,
size_t    __n,
char_type    __a
[inline, static]
 

Definition at line 103 of file char_traits.h.

References std::char_traits< _CharT >::assign(), and std::char_traits< _CharT >::char_type.

template<class _CharT>
void std::char_traits< _CharT >::assign char_type   __c1,
const char_type   __c2
[inline, static]
 

Definition at line 58 of file char_traits.h.

References std::char_traits< _CharT >::char_type.

Referenced by std::char_traits< _CharT >::assign().

template<class _CharT>
int std::char_traits< _CharT >::compare const char_type   __s1,
const char_type   __s2,
size_t    __n
[inline, static]
 

Definition at line 70 of file char_traits.h.

References std::char_traits< _CharT >::char_type, std::char_traits< _CharT >::eq(), and std::char_traits< _CharT >::lt().

template<class _CharT>
char_type* std::char_traits< _CharT >::copy char_type   __s1,
const char_type   __s2,
size_t    __n
[inline, static]
 

Definition at line 99 of file char_traits.h.

References std::char_traits< _CharT >::char_type.

template<class _CharT>
int_type std::char_traits< _CharT >::eof   [inline, static]
 

Definition at line 122 of file char_traits.h.

Referenced by std::char_traits< char >::not_eof(), and std::char_traits< _CharT >::not_eof().

template<class _CharT>
bool std::char_traits< _CharT >::eq const char_type   __c1,
const char_type   __c2
[inline, static]
 

Definition at line 62 of file char_traits.h.

References std::char_traits< _CharT >::char_type.

Referenced by std::char_traits< _CharT >::compare().

template<class _CharT>
bool std::char_traits< _CharT >::eq_int_type const int_type   __c1,
const int_type   __c2
[inline, static]
 

Definition at line 118 of file char_traits.h.

References std::char_traits< _CharT >::int_type.

Referenced by std::char_traits< _CharT >::not_eof().

template<class _CharT>
const char_type* std::char_traits< _CharT >::find const char_type   __s,
size_t    __n,
const char_type   __a
[inline, static]
 

Definition at line 87 of file char_traits.h.

References std::char_traits< _CharT >::char_type.

template<class _CharT>
size_t std::char_traits< _CharT >::length const char_type   __s [inline, static]
 

Definition at line 79 of file char_traits.h.

References std::char_traits< _CharT >::char_type.

template<class _CharT>
bool std::char_traits< _CharT >::lt const char_type   __c1,
const char_type   __c2
[inline, static]
 

Definition at line 66 of file char_traits.h.

References std::char_traits< _CharT >::char_type.

Referenced by std::char_traits< _CharT >::compare().

template<class _CharT>
char_type* std::char_traits< _CharT >::move char_type   __s1,
const char_type   __s2,
size_t    __n
[inline, static]
 

Definition at line 95 of file char_traits.h.

References std::char_traits< _CharT >::char_type.

template<class _CharT>
int_type std::char_traits< _CharT >::not_eof const int_type   __c [inline, static]
 

Definition at line 125 of file char_traits.h.

References std::char_traits< _CharT >::eof(), std::char_traits< _CharT >::eq_int_type(), and std::char_traits< _CharT >::int_type.

template<class _CharT>
char_type std::char_traits< _CharT >::to_char_type const int_type   __c [inline, static]
 

Definition at line 111 of file char_traits.h.

References std::char_traits< _CharT >::char_type, and std::char_traits< _CharT >::int_type.

template<class _CharT>
int_type std::char_traits< _CharT >::to_int_type const char_type   __c [inline, static]
 

Definition at line 115 of file char_traits.h.

References std::char_traits< _CharT >::char_type, and std::char_traits< _CharT >::int_type.


The documentation for this struct was generated from the following file:
Generated on Mon Apr 8 03:18:54 2002 for libstdc++-v3 Source by doxygen1.2.15