Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields

std::basic_string< _CharT, _Traits, _Alloc > Class Template Reference

Managing sequences of characters and character-like objects. More...

#include <string>


Public Types

typedef _Alloc allocator_type
typedef __gnu_cxx::__normal_iterator<
const_pointer, basic_string
const_iterator
typedef _Alloc::const_pointer const_pointer
typedef _Alloc::const_reference const_reference
typedef std::reverse_iterator<
const_iterator > 
const_reverse_iterator
typedef _Alloc::difference_type difference_type
typedef __gnu_cxx::__normal_iterator<
pointer, basic_string
iterator
typedef _Alloc::pointer pointer
typedef _Alloc::reference reference
typedef std::reverse_iterator<
iterator > 
reverse_iterator
typedef _Alloc::size_type size_type
typedef _Traits traits_type
typedef _Traits::char_type value_type

Public Member Functions

template<class _InputIterator>
basic_stringappend (_InputIterator __first, _InputIterator __last)
basic_stringappend (size_type __n, _CharT __c)
basic_stringappend (const _CharT *__s)
basic_stringappend (const _CharT *__s, size_type __n)
basic_stringappend (const basic_string &__str, size_type __pos, size_type __n)
basic_stringappend (const basic_string &__str)
template<class _InputIterator>
basic_stringassign (_InputIterator __first, _InputIterator __last)
basic_stringassign (size_type __n, _CharT __c)
basic_stringassign (const _CharT *__s)
basic_stringassign (const _CharT *__s, size_type __n)
basic_stringassign (const basic_string &__str, size_type __pos, size_type __n)
basic_stringassign (const basic_string &__str)
reference at (size_type __n)
const_reference at (size_type __n) const
template<class _InputIterator>
 basic_string (_InputIterator __beg, _InputIterator __end, const _Alloc &__a=_Alloc())
 basic_string (size_type __n, _CharT __c, const _Alloc &__a=_Alloc())
 basic_string (const _CharT *__s, const _Alloc &__a=_Alloc())
 basic_string (const _CharT *__s, size_type __n, const _Alloc &__a=_Alloc())
 basic_string (const basic_string &__str, size_type __pos, size_type __n, const _Alloc &__a)
 basic_string (const basic_string &__str, size_type __pos, size_type __n=npos)
 basic_string (const basic_string &__str)
 basic_string (const _Alloc &__a)
const_iterator begin () const
iterator begin ()
const _CharT * c_str () const
size_type capacity () const
void clear ()
int compare (size_type __pos, size_type __n1, const _CharT *__s, size_type __n2) const
int compare (size_type __pos, size_type __n1, const _CharT *__s) const
int compare (const _CharT *__s) const
int compare (size_type __pos1, size_type __n1, const basic_string &__str, size_type __pos2, size_type __n2) const
int compare (size_type __pos, size_type __n, const basic_string &__str) const
int compare (const basic_string &__str) const
size_type copy (_CharT *__s, size_type __n, size_type __pos=0) const
const _CharT * data () const
bool empty () const
const_iterator end () const
iterator end ()
iterator erase (iterator __first, iterator __last)
iterator erase (iterator __position)
basic_stringerase (size_type __pos=0, size_type __n=npos)
size_type find (_CharT __c, size_type __pos=0) const
size_type find (const _CharT *__s, size_type __pos=0) const
size_type find (const basic_string &__str, size_type __pos=0) const
size_type find (const _CharT *__s, size_type __pos, size_type __n) const
size_type find_first_not_of (_CharT __c, size_type __pos=0) const
size_type find_first_not_of (const _CharT *__s, size_type __pos=0) const
size_type find_first_not_of (const _CharT *__s, size_type __pos, size_type __n) const
size_type find_first_not_of (const basic_string &__str, size_type __pos=0) const
size_type find_first_of (_CharT __c, size_type __pos=0) const
size_type find_first_of (const _CharT *__s, size_type __pos=0) const
size_type find_first_of (const _CharT *__s, size_type __pos, size_type __n) const
size_type find_first_of (const basic_string &__str, size_type __pos=0) const
size_type find_last_not_of (_CharT __c, size_type __pos=npos) const
size_type find_last_not_of (const _CharT *__s, size_type __pos=npos) const
size_type find_last_not_of (const _CharT *__s, size_type __pos, size_type __n) const
size_type find_last_not_of (const basic_string &__str, size_type __pos=npos) const
size_type find_last_of (_CharT __c, size_type __pos=npos) const
size_type find_last_of (const _CharT *__s, size_type __pos=npos) const
size_type find_last_of (const _CharT *__s, size_type __pos, size_type __n) const
size_type find_last_of (const basic_string &__str, size_type __pos=npos) const
allocator_type get_allocator () const
iterator insert (iterator __p, _CharT __c=_CharT())
basic_stringinsert (size_type __pos, size_type __n, _CharT __c)
basic_stringinsert (size_type __pos, const _CharT *__s)
basic_stringinsert (size_type __pos, const _CharT *__s, size_type __n)
basic_stringinsert (size_type __pos1, const basic_string &__str, size_type __pos2, size_type __n)
basic_stringinsert (size_type __pos1, const basic_string &__str)
template<class _InputIterator>
void insert (iterator __p, _InputIterator __beg, _InputIterator __end)
void insert (iterator __p, size_type __n, _CharT __c)
size_type length () const
size_type max_size () const
basic_stringoperator+= (_CharT __c)
basic_stringoperator+= (const _CharT *__s)
basic_stringoperator+= (const basic_string &__str)
basic_stringoperator= (_CharT __c)
basic_stringoperator= (const _CharT *__s)
basic_stringoperator= (const basic_string &__str)
reference operator[] (size_type __pos)
const_reference operator[] (size_type __pos) const
void push_back (_CharT __c)
const_reverse_iterator rbegin () const
reverse_iterator rbegin ()
const_reverse_iterator rend () const
reverse_iterator rend ()
basic_stringreplace (iterator __i1, iterator __i2, const_iterator __k1, const_iterator __k2)
basic_stringreplace (iterator __i1, iterator __i2, iterator __k1, iterator __k2)
basic_stringreplace (iterator __i1, iterator __i2, const _CharT *__k1, const _CharT *__k2)
basic_stringreplace (iterator __i1, iterator __i2, _CharT *__k1, _CharT *__k2)
template<class _InputIterator>
basic_stringreplace (iterator __i1, iterator __i2, _InputIterator __k1, _InputIterator __k2)
basic_stringreplace (iterator __i1, iterator __i2, size_type __n, _CharT __c)
basic_stringreplace (iterator __i1, iterator __i2, const _CharT *__s)
basic_stringreplace (iterator __i1, iterator __i2, const _CharT *__s, size_type __n)
basic_stringreplace (iterator __i1, iterator __i2, const basic_string &__str)
basic_stringreplace (size_type __pos, size_type __n1, size_type __n2, _CharT __c)
basic_stringreplace (size_type __pos, size_type __n1, const _CharT *__s)
basic_stringreplace (size_type __pos, size_type __n1, const _CharT *__s, size_type __n2)
basic_stringreplace (size_type __pos1, size_type __n1, const basic_string &__str, size_type __pos2, size_type __n2)
basic_stringreplace (size_type __pos, size_type __n, const basic_string &__str)
void reserve (size_type __res_arg=0)
void resize (size_type __n)
void resize (size_type __n, _CharT __c)
size_type rfind (_CharT __c, size_type __pos=npos) const
size_type rfind (const _CharT *__s, size_type __pos=npos) const
size_type rfind (const _CharT *__s, size_type __pos, size_type __n) const
size_type rfind (const basic_string &__str, size_type __pos=npos) const
size_type size () const
basic_string substr (size_type __pos=0, size_type __n=npos) const
void swap (basic_string< _CharT, _Traits, _Alloc > &__s)

Static Public Attributes

static const size_type npos = static_cast<size_type>(-1)

Data Structures

struct  _Alloc_hider
struct  _Rep


Detailed Description

template<typename _CharT, typename _Traits, typename _Alloc>
class std::basic_string< _CharT, _Traits, _Alloc >

Managing sequences of characters and character-like objects.

Meets the requirements of a container, a reversible container, and a sequence. Of the optional sequence requirements, only push_back, at, and array access are supported.

Definition at line 109 of file basic_string.h.


The documentation for this class was generated from the following file:
Generated on Sun Apr 17 05:08:48 2005 for Extended STL String by  doxygen 1.4.1