libstdc++
std::char_traits< char > Struct Reference

#include <char_traits.h>

Public Types

typedef char char_type
 
typedef int int_type
 
typedef streamoff off_type
 
typedef streampos pos_type
 
typedef mbstate_t state_type
 

Static Public Member Functions

static void assign (char_type &__c1, const char_type &__c2) noexcept
 
static char_type * assign (char_type *__s, size_t __n, char_type __a)
 
static int compare (const char_type *__s1, const char_type *__s2, size_t __n)
 
static char_type * copy (char_type *__s1, const char_type *__s2, size_t __n)
 
static constexpr int_type eof () noexcept
 
static constexpr bool eq (const char_type &__c1, const char_type &__c2) noexcept
 
static constexpr bool eq_int_type (const int_type &__c1, const int_type &__c2) noexcept
 
static const char_type * find (const char_type *__s, size_t __n, const char_type &__a)
 
static size_t length (const char_type *__s)
 
static constexpr bool lt (const char_type &__c1, const char_type &__c2) noexcept
 
static char_type * move (char_type *__s1, const char_type *__s2, size_t __n)
 
static constexpr int_type not_eof (const int_type &__c) noexcept
 
static constexpr char_type to_char_type (const int_type &__c) noexcept
 
static constexpr int_type to_int_type (const char_type &__c) noexcept
 

Detailed Description

21.1.3.1 char_traits specializations

Definition at line 233 of file char_traits.h.

Member Typedef Documentation

◆ char_type

typedef char std::char_traits< char >::char_type

Definition at line 235 of file char_traits.h.

◆ int_type

typedef int std::char_traits< char >::int_type

Definition at line 236 of file char_traits.h.

◆ off_type

typedef streamoff std::char_traits< char >::off_type

Definition at line 238 of file char_traits.h.

◆ pos_type

typedef streampos std::char_traits< char >::pos_type

Definition at line 237 of file char_traits.h.

◆ state_type

typedef mbstate_t std::char_traits< char >::state_type

Definition at line 239 of file char_traits.h.

Member Function Documentation

◆ assign() [1/2]

static void std::char_traits< char >::assign ( char_type &  __c1,
const char_type &  __c2 
)
inlinestaticnoexcept

Definition at line 242 of file char_traits.h.

◆ assign() [2/2]

static char_type * std::char_traits< char >::assign ( char_type *  __s,
size_t  __n,
char_type  __a 
)
inlinestatic

Definition at line 294 of file char_traits.h.

◆ compare()

static int std::char_traits< char >::compare ( const char_type *  __s1,
const char_type *  __s2,
size_t  __n 
)
inlinestatic

Definition at line 258 of file char_traits.h.

◆ copy()

static char_type * std::char_traits< char >::copy ( char_type *  __s1,
const char_type *  __s2,
size_t  __n 
)
inlinestatic

Definition at line 286 of file char_traits.h.

◆ eof()

static constexpr int_type std::char_traits< char >::eof ( )
inlinestaticconstexprnoexcept

Definition at line 316 of file char_traits.h.

◆ eq()

static constexpr bool std::char_traits< char >::eq ( const char_type &  __c1,
const char_type &  __c2 
)
inlinestaticconstexprnoexcept

Definition at line 246 of file char_traits.h.

◆ eq_int_type()

static constexpr bool std::char_traits< char >::eq_int_type ( const int_type &  __c1,
const int_type &  __c2 
)
inlinestaticconstexprnoexcept

Definition at line 312 of file char_traits.h.

◆ find()

static const char_type * std::char_traits< char >::find ( const char_type *  __s,
size_t  __n,
const char_type &  __a 
)
inlinestatic

Definition at line 270 of file char_traits.h.

◆ length()

static size_t std::char_traits< char >::length ( const char_type *  __s)
inlinestatic

Definition at line 266 of file char_traits.h.

◆ lt()

static constexpr bool std::char_traits< char >::lt ( const char_type &  __c1,
const char_type &  __c2 
)
inlinestaticconstexprnoexcept

Definition at line 250 of file char_traits.h.

◆ move()

static char_type * std::char_traits< char >::move ( char_type *  __s1,
const char_type *  __s2,
size_t  __n 
)
inlinestatic

Definition at line 278 of file char_traits.h.

◆ not_eof()

static constexpr int_type std::char_traits< char >::not_eof ( const int_type &  __c)
inlinestaticconstexprnoexcept

Definition at line 320 of file char_traits.h.

◆ to_char_type()

static constexpr char_type std::char_traits< char >::to_char_type ( const int_type &  __c)
inlinestaticconstexprnoexcept

Definition at line 302 of file char_traits.h.

◆ to_int_type()

static constexpr int_type std::char_traits< char >::to_int_type ( const char_type &  __c)
inlinestaticconstexprnoexcept

Definition at line 308 of file char_traits.h.


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