basic_string Class Reference

class basic_string : protected _STLP_PRIV _String_base

Inherits from

Public Member Functions
basic_string(const allocator_type &)
basic_string(_Reserve_t, size_t, const allocator_type &)
basic_string(const _Self &)
basic_string(const _Self &, size_type, size_type, const allocator_type &)
basic_string(const _CharT *, size_type, const allocator_type &)
basic_string(const _CharT *, const allocator_type &)
basic_string(size_type, _CharT, const allocator_type &)
basic_string(__move_source< _Self >)
basic_string(_InputIterator, _InputIterator, const allocator_type &__a)
basic_string(const _CharT *, const _CharT *, const allocator_type &__a)
~basic_string()
int _STLP_CALL_M_compare(const _CharT *, const _CharT *, const _CharT *, const _CharT *)
_Self &_M_replaceT(iterator, iterator, _InputIter, _InputIter, const input_iterator_tag &)
_Self &_M_replaceT(iterator, iterator, _ForwardIter, _ForwardIter, const forward_iterator_tag &)
_Self &_M_replace_aux(iterator, iterator, _RandomIter, _RandomIter, __true_type const &)
_Self &_M_replace_aux(iterator, iterator, _InputIter, _InputIter, __false_type const &)
_Self &_M_replace_dispatch(iterator, iterator, _Integer, _Integer, const __true_type &)
_Self &_M_replace_dispatch(iterator, iterator, _InputIter, _InputIter, const __false_type &)
_Self &append(_InputIter, _InputIter)
_Self &append(const _CharT *, const _CharT *)
_Self &append(const _Self &)
_Self &append(const _Self &, size_type, size_type)
_Self &append(const _CharT *, size_type)
_Self &append(const _CharT *)
_Self &append(size_type, _CharT)
_Self &assign(const _Self &)
_Self &assign(const _Self &, size_type, size_type)
_Self &assign(const _CharT *, size_type)
_Self &assign(const _CharT *)
_Self &assign(size_type, _CharT)
_Self &assign(_InputIter, _InputIter)
_Self &assign(const _CharT *, const _CharT *)
const_reference at(size_type)
reference at(size_type)
iterator begin()
const_iterator begin()
const _CharT *c_str()
size_type capacity()
voidclear()
intcompare(const _Self &)
intcompare(size_type, size_type, const _Self &)
intcompare(size_type, size_type, const _Self &, size_type, size_type)
intcompare(const _CharT *)
intcompare(size_type, size_type, const _CharT *)
intcompare(size_type, size_type, const _CharT *, size_type)
size_type copy(_CharT *, size_type, size_type)
const _CharT *data()
boolempty()
iterator end()
const_iterator end()
_Self &erase(size_type, size_type)
iterator erase(iterator)
iterator erase(iterator, iterator)
size_type find(const _Self &, size_type)
size_type find(const _CharT *, size_type)
size_type find(const _CharT *, size_type, size_type)
size_type find(_CharT)
size_type find(_CharT, size_type)
size_type find_first_not_of(const _Self &, size_type)
size_type find_first_not_of(const _CharT *, size_type)
size_type find_first_not_of(const _CharT *, size_type, size_type)
size_type find_first_not_of(_CharT, size_type)
size_type find_first_of(const _Self &, size_type)
size_type find_first_of(const _CharT *, size_type)
size_type find_first_of(const _CharT *, size_type, size_type)
size_type find_first_of(_CharT, size_type)
size_type find_last_not_of(const _Self &, size_type)
size_type find_last_not_of(const _CharT *, size_type)
size_type find_last_not_of(const _CharT *, size_type, size_type)
size_type find_last_not_of(_CharT, size_type)
size_type find_last_of(const _Self &, size_type)
size_type find_last_of(const _CharT *, size_type)
size_type find_last_of(const _CharT *, size_type, size_type)
size_type find_last_of(_CharT, size_type)
allocator_type get_allocator()
_Self &insert(size_type, const _Self &)
_Self &insert(size_type, const _Self &, size_type, size_type)
_Self &insert(size_type, const _CharT *, size_type)
_Self &insert(size_type, const _CharT *)
_Self &insert(size_type, size_type, _CharT)
iterator insert(iterator, _CharT)
voidinsert(iterator, size_t, _CharT)
voidinsert(iterator, _InputIter, _InputIter)
voidinsert(iterator, const _CharT *, const _CharT *)
size_type length()
size_t max_size()
_Self &operator+=(const _Self &)
_Self &operator+=(const _CharT *)
_Self &operator+=(_CharT)
_Self &operator=(const _Self &)
_Self &operator=(const _CharT *)
_Self &operator=(_CharT)
const_reference operator[](size_type)
reference operator[](size_type)
voidpop_back()
voidpush_back(_CharT)
reverse_iterator rbegin()
const_reverse_iteratorrbegin()
reverse_iterator rend()
const_reverse_iteratorrend()
_Self &replace(size_type, size_type, const _Self &)
_Self &replace(size_type, size_type, const _Self &, size_type, size_type)
_Self &replace(size_type, size_type, const _CharT *, size_type)
_Self &replace(size_type, size_type, const _CharT *)
_Self &replace(size_type, size_type, size_type, _CharT)
_Self &replace(iterator, iterator, const _Self &)
_Self &replace(iterator, iterator, const _CharT *, size_type)
_Self &replace(iterator, iterator, const _CharT *)
_Self &replace(iterator, iterator, size_type, _CharT)
_Self &replace(iterator, iterator, _InputIter, _InputIter)
_Self &replace(iterator, iterator, const _CharT *, const _CharT *)
voidreserve(size_type)
voidresize(size_type, _CharT)
voidresize(size_type)
size_type rfind(const _Self &, size_type)
size_type rfind(const _CharT *, size_type)
size_type rfind(const _CharT *, size_type, size_type)
size_type rfind(_CharT, size_type)
size_type size()
_Self substr(size_type, size_type)
voidswap(_Self &)
Protected Member Functions
_Self &_M_append(const _CharT *, const _CharT *)
_Self &_M_assign(const _CharT *, const _CharT *)
void_M_construct_null(_CharT *)
void_M_construct_null_aux(_CharT *, const __false_type &)
void_M_construct_null_aux(_CharT *, const __true_type &)
void_M_copy(const _CharT *, const _CharT *, _CharT *)
void_M_copyT(_InputIterator, _InputIterator, pointer)
void_M_copyT(const _CharT *, const _CharT *, _CharT *)
void_M_force_construct_null(_CharT *, const __true_type &)
void_M_force_construct_null(_CharT *, const __false_type &)
void_M_force_terminate_string(const __true_type &)
void_M_force_terminate_string(const __false_type &)
void_M_insert(iterator, const _CharT *, const _CharT *, bool)
void_M_insertT(iterator, _InputIter, _InputIter, const input_iterator_tag &)
void_M_insertT(iterator, _ForwardIter, _ForwardIter, const forward_iterator_tag &)
pointer _M_insert_aux(pointer, _CharT)
void_M_insert_aux(iterator, _RandomIter, _RandomIter, const __true_type &)
void_M_insert_aux(iterator, _InputIter, _InputIter, const __false_type &)
void_M_insert_dispatch(iterator, _Integer, _Integer, const __true_type &)
void_M_insert_dispatch(iterator, _InputIter, _InputIter, const __false_type &)
void_M_insert_overflow(iterator, _ForwardIter, _ForwardIter, difference_type)
bool_M_inside(const _CharT *)
void_M_move(const _CharT *, const _CharT *, _CharT *)
_CharT _STLP_CALL_M_null()
void_M_range_initialize(const _CharT *, const _CharT *)
_Self &_M_replace(iterator, iterator, const _CharT *, const _CharT *, bool)
void_M_terminate_string()
void_M_terminate_string_aux(const __false_type &)
void_M_terminate_string_aux(const __true_type &)
Private Member Functions
_Self &_M_appendT(_InputIter, _InputIter, const input_iterator_tag &)
_Self &_M_appendT(_ForwardIter, _ForwardIter, const forward_iterator_tag &)
_Self &_M_append_dispatch(_Integer, _Integer, const __true_type &)
_Self &_M_append_dispatch(_InputIter, _InputIter, const __false_type &)
_Self &_M_assign_dispatch(_Integer, _Integer, const __true_type &)
_Self &_M_assign_dispatch(_InputIter, _InputIter, const __false_type &)
void_M_initialize_dispatch(_Integer, _Integer, const __true_type &)
void_M_initialize_dispatch(_InputIter, _InputIter, const __false_type &)
void_M_range_initialize(_InputIter, _InputIter, const input_iterator_tag &)
void_M_range_initialize(_ForwardIter, _ForwardIter, const forward_iterator_tag &)
void_M_range_initializeT(_InputIter, _InputIter)
Public Member Type Definitions
typedef random_access_iterator_tag _Iterator_category
typedef _String_reserve_t _Reserve_t
typedef_Base::allocator_type allocator_type
typedefconst value_type * const_iterator
typedefconst value_type * const_pointer
typedefconst value_type & const_reference
typedef ptrdiff_t difference_type
typedef value_type * iterator
typedef value_type * pointer
typedef value_type & reference
typedef_Base::size_type size_type
typedef_Traits traits_type
typedef_CharT value_type
Protected Member Type Definitions
typedef_STLP_PRIV _String_base< _CharT, _Alloc > _Base
typedef _IsIntegral< _CharT >::_Ret _Char_Is_Integral
typedef _IsPOD< _CharT >::_Type _Char_Is_POD
typedef basic_string< _CharT, _Traits, _Alloc > _Self
typedef random_access_iterator_tag r_a_i_t
Public Attributes
_STLP_DECLARE_RANDOM_ACCESS_REVERSE_ITERATORS
const size_tnpos

Constructor & Destructor Documentation

basic_string(const allocator_type &)

basic_string(const allocator_type &__a =  allocator_type())[inline, explicit]

Parameters

const allocator_type & __a =  allocator_type()

basic_string(_Reserve_t, size_t, const allocator_type &)

basic_string(_Reserve_t,
size_t__n,
const allocator_type &__a =  allocator_type()
)[inline]

Parameters

_Reserve_t
size_t __n
const allocator_type & __a =  allocator_type()

basic_string(const _Self &)

basic_string(const _Self &)

Parameters

const _Self &

basic_string(const _Self &, size_type, size_type, const allocator_type &)

basic_string(const _Self &__s,
size_type__pos,
size_type__n =  npos ,
const allocator_type &__a =  allocator_type()
)[inline]

Parameters

const _Self & __s
size_type __pos
size_type __n =  npos
const allocator_type & __a =  allocator_type()

basic_string(const _CharT *, size_type, const allocator_type &)

basic_string(const _CharT *__s,
size_type__n,
const allocator_type &__a =  allocator_type()
)[inline]

Parameters

const _CharT * __s
size_type __n
const allocator_type & __a =  allocator_type()

basic_string(const _CharT *, const allocator_type &)

basic_string(const _CharT *__s,
const allocator_type &__a =  allocator_type()
)

Parameters

const _CharT * __s
const allocator_type & __a =  allocator_type()

basic_string(size_type, _CharT, const allocator_type &)

basic_string(size_type__n,
_CharT__c,
const allocator_type &__a =  allocator_type()
)[inline]

Parameters

size_type __n
_CharT __c
const allocator_type & __a =  allocator_type()

basic_string(__move_source< _Self >)

basic_string(__move_source< _Self >src)[inline]

Parameters

__move_source< _Self > src

basic_string(_InputIterator, _InputIterator, const allocator_type &__a)

basic_string(_InputIterator__f,
_InputIterator__l,
const allocator_type &__a_STLP_ALLOCATOR_TYPE_DFL
)[inline]

Parameters

_InputIterator __f
_InputIterator __l
const allocator_type &__a _STLP_ALLOCATOR_TYPE_DFL

basic_string(const _CharT *, const _CharT *, const allocator_type &__a)

basic_string(const _CharT *__f,
const _CharT *__l,
const allocator_type &__a_STLP_ALLOCATOR_TYPE_DFL
)[inline]

Parameters

const _CharT * __f
const _CharT * __l
const allocator_type &__a _STLP_ALLOCATOR_TYPE_DFL

~basic_string()

~basic_string()[inline]

Member Functions Documentation

_M_append(const _CharT *, const _CharT *)

_Self &_M_append(const _CharT *__first,
const _CharT *__last
)[protected]

Parameters

const _CharT * __first
const _CharT * __last

_M_appendT(_InputIter, _InputIter, const input_iterator_tag &)

_Self &_M_appendT(_InputIter__first,
_InputIter__last,
const input_iterator_tag &
)[private, inline]

Parameters

_InputIter __first
_InputIter __last
const input_iterator_tag &

_M_appendT(_ForwardIter, _ForwardIter, const forward_iterator_tag &)

_Self &_M_appendT(_ForwardIter__first,
_ForwardIter__last,
const forward_iterator_tag &
)[private, inline]

Parameters

_ForwardIter __first
_ForwardIter __last
const forward_iterator_tag &

_M_append_dispatch(_Integer, _Integer, const __true_type &)

_Self &_M_append_dispatch(_Integer__n,
_Integer__x,
const __true_type &
)[private, inline]

Parameters

_Integer __n
_Integer __x
const __true_type &

_M_append_dispatch(_InputIter, _InputIter, const __false_type &)

_Self &_M_append_dispatch(_InputIter__f,
_InputIter__l,
const __false_type &
)[private, inline]

Parameters

_InputIter __f
_InputIter __l
const __false_type &

_M_assign(const _CharT *, const _CharT *)

_Self &_M_assign(const _CharT *__f,
const _CharT *__l
)[protected]

Parameters

const _CharT * __f
const _CharT * __l

_M_assign_dispatch(_Integer, _Integer, const __true_type &)

_Self &_M_assign_dispatch(_Integer__n,
_Integer__x,
const __true_type &
)[private, inline]

Parameters

_Integer __n
_Integer __x
const __true_type &

_M_assign_dispatch(_InputIter, _InputIter, const __false_type &)

_Self &_M_assign_dispatch(_InputIter__f,
_InputIter__l,
const __false_type &
)[private, inline]

Parameters

_InputIter __f
_InputIter __l
const __false_type &

_M_compare(const _CharT *, const _CharT *, const _CharT *, const _CharT *)

int _STLP_CALL_M_compare(const _CharT *__f1,
const _CharT *__l1,
const _CharT *__f2,
const _CharT *__l2
)[static, inline]

Parameters

const _CharT * __f1
const _CharT * __l1
const _CharT * __f2
const _CharT * __l2

_M_construct_null(_CharT *)

void_M_construct_null(_CharT *__p)const [protected, inline]

Parameters

_CharT * __p

_M_construct_null_aux(_CharT *, const __false_type &)

void_M_construct_null_aux(_CharT *__p,
const __false_type &
)const [protected, inline]

Parameters

_CharT * __p
const __false_type &

_M_construct_null_aux(_CharT *, const __true_type &)

void_M_construct_null_aux(_CharT *__p,
const __true_type &
)const [protected, inline]

Parameters

_CharT * __p
const __true_type &

_M_copy(const _CharT *, const _CharT *, _CharT *)

void_M_copy(const _CharT *__f,
const _CharT *__l,
_CharT *__res
)[protected, inline]

Parameters

const _CharT * __f
const _CharT * __l
_CharT * __res

_M_copyT(_InputIterator, _InputIterator, pointer)

void_M_copyT(_InputIterator__first,
_InputIterator__last,
pointer__result
)[protected, inline]

Parameters

_InputIterator __first
_InputIterator __last
pointer __result

_M_copyT(const _CharT *, const _CharT *, _CharT *)

void_M_copyT(const _CharT *__f,
const _CharT *__l,
_CharT *__res
)[protected, inline]

Parameters

const _CharT * __f
const _CharT * __l
_CharT * __res

_M_force_construct_null(_CharT *, const __true_type &)

void_M_force_construct_null(_CharT *,
const __true_type &
)const [protected, inline]

Parameters

_CharT *
const __true_type &

_M_force_construct_null(_CharT *, const __false_type &)

void_M_force_construct_null(_CharT *__p,
const __false_type &
)const [protected, inline]

Parameters

_CharT * __p
const __false_type &

_M_force_terminate_string(const __true_type &)

void_M_force_terminate_string(const __true_type &)[protected, inline]

Parameters

const __true_type &

_M_force_terminate_string(const __false_type &)

void_M_force_terminate_string(const __false_type &)[protected, inline]

Parameters

const __false_type &

_M_initialize_dispatch(_Integer, _Integer, const __true_type &)

void_M_initialize_dispatch(_Integer__n,
_Integer__x,
const __true_type &
)[private, inline]

Parameters

_Integer __n
_Integer __x
const __true_type &

_M_initialize_dispatch(_InputIter, _InputIter, const __false_type &)

void_M_initialize_dispatch(_InputIter__f,
_InputIter__l,
const __false_type &
)[private, inline]

Parameters

_InputIter __f
_InputIter __l
const __false_type &

_M_insert(iterator, const _CharT *, const _CharT *, bool)

void_M_insert(iterator__p,
const _CharT *__first,
const _CharT *__last,
bool__self_ref
)[protected]

Parameters

iterator __p
const _CharT * __first
const _CharT * __last
bool __self_ref

_M_insertT(iterator, _InputIter, _InputIter, const input_iterator_tag &)

void_M_insertT(iterator__p,
_InputIter__first,
_InputIter__last,
const input_iterator_tag &
)[protected, inline]

Parameters

iterator __p
_InputIter __first
_InputIter __last
const input_iterator_tag &

_M_insertT(iterator, _ForwardIter, _ForwardIter, const forward_iterator_tag &)

void_M_insertT(iterator__pos,
_ForwardIter__first,
_ForwardIter__last,
const forward_iterator_tag &
)[protected, inline]

Parameters

iterator __pos
_ForwardIter __first
_ForwardIter __last
const forward_iterator_tag &

_M_insert_aux(pointer, _CharT)

pointer _M_insert_aux(pointer,
_CharT
)[protected]

Parameters

pointer
_CharT

_M_insert_aux(iterator, _RandomIter, _RandomIter, const __true_type &)

void_M_insert_aux(iterator__p,
_RandomIter__first,
_RandomIter__last,
const __true_type &
)[protected, inline]

Parameters

iterator __p
_RandomIter __first
_RandomIter __last
const __true_type &

_M_insert_aux(iterator, _InputIter, _InputIter, const __false_type &)

void_M_insert_aux(iterator__p,
_InputIter__first,
_InputIter__last,
const __false_type &
)[protected, inline]

Parameters

iterator __p
_InputIter __first
_InputIter __last
const __false_type &

_M_insert_dispatch(iterator, _Integer, _Integer, const __true_type &)

void_M_insert_dispatch(iterator__p,
_Integer__n,
_Integer__x,
const __true_type &
)[protected, inline]

Parameters

iterator __p
_Integer __n
_Integer __x
const __true_type &

_M_insert_dispatch(iterator, _InputIter, _InputIter, const __false_type &)

void_M_insert_dispatch(iterator__p,
_InputIter__first,
_InputIter__last,
const __false_type &
)[protected, inline]

Parameters

iterator __p
_InputIter __first
_InputIter __last
const __false_type &

_M_insert_overflow(iterator, _ForwardIter, _ForwardIter, difference_type)

void_M_insert_overflow(iterator__pos,
_ForwardIter__first,
_ForwardIter__last,
difference_type__n
)[protected, inline]

Parameters

iterator __pos
_ForwardIter __first
_ForwardIter __last
difference_type __n

_M_inside(const _CharT *)

bool_M_inside(const _CharT *__s)const [protected, inline]

Parameters

const _CharT * __s

_M_move(const _CharT *, const _CharT *, _CharT *)

void_M_move(const _CharT *__f,
const _CharT *__l,
_CharT *__res
)[protected, inline]

Parameters

const _CharT * __f
const _CharT * __l
_CharT * __res

_M_null()

_CharT _STLP_CALL_M_null()[protected, static, inline]

_M_range_initialize(_InputIter, _InputIter, const input_iterator_tag &)

void_M_range_initialize(_InputIter__f,
_InputIter__l,
const input_iterator_tag &__tag
)[private, inline]

Parameters

_InputIter __f
_InputIter __l
const input_iterator_tag & __tag

_M_range_initialize(_ForwardIter, _ForwardIter, const forward_iterator_tag &)

void_M_range_initialize(_ForwardIter__f,
_ForwardIter__l,
const forward_iterator_tag &
)[private, inline]

Parameters

_ForwardIter __f
_ForwardIter __l
const forward_iterator_tag &

_M_range_initialize(const _CharT *, const _CharT *)

void_M_range_initialize(const _CharT *__f,
const _CharT *__l
)[protected, inline]

Parameters

const _CharT * __f
const _CharT * __l

_M_range_initializeT(_InputIter, _InputIter)

void_M_range_initializeT(_InputIter__f,
_InputIter__l
)[private, inline]

Parameters

_InputIter __f
_InputIter __l

_M_replace(iterator, iterator, const _CharT *, const _CharT *, bool)

_Self &_M_replace(iterator__first,
iterator__last,
const _CharT *__f,
const _CharT *__l,
bool__self_ref
)[protected]

Parameters

iterator __first
iterator __last
const _CharT * __f
const _CharT * __l
bool __self_ref

_M_replaceT(iterator, iterator, _InputIter, _InputIter, const input_iterator_tag &)

_Self &_M_replaceT(iterator__first,
iterator__last,
_InputIter__f,
_InputIter__l,
const input_iterator_tag &__ite_tag
)[inline]

Parameters

iterator __first
iterator __last
_InputIter __f
_InputIter __l
const input_iterator_tag & __ite_tag

_M_replaceT(iterator, iterator, _ForwardIter, _ForwardIter, const forward_iterator_tag &)

_Self &_M_replaceT(iterator__first,
iterator__last,
_ForwardIter__f,
_ForwardIter__l,
const forward_iterator_tag &__ite_tag
)[inline]

Parameters

iterator __first
iterator __last
_ForwardIter __f
_ForwardIter __l
const forward_iterator_tag & __ite_tag

_M_replace_aux(iterator, iterator, _RandomIter, _RandomIter, __true_type const &)

_Self &_M_replace_aux(iterator__first,
iterator__last,
_RandomIter__f,
_RandomIter__l,
__true_type const &
)[inline]

Parameters

iterator __first
iterator __last
_RandomIter __f
_RandomIter __l
__true_type const &

_M_replace_aux(iterator, iterator, _InputIter, _InputIter, __false_type const &)

_Self &_M_replace_aux(iterator__first,
iterator__last,
_InputIter__f,
_InputIter__l,
__false_type const &
)[inline]

Parameters

iterator __first
iterator __last
_InputIter __f
_InputIter __l
__false_type const &

_M_replace_dispatch(iterator, iterator, _Integer, _Integer, const __true_type &)

_Self &_M_replace_dispatch(iterator__first,
iterator__last,
_Integer__n,
_Integer__x,
const __true_type &
)[inline]

Parameters

iterator __first
iterator __last
_Integer __n
_Integer __x
const __true_type &

_M_replace_dispatch(iterator, iterator, _InputIter, _InputIter, const __false_type &)

_Self &_M_replace_dispatch(iterator__first,
iterator__last,
_InputIter__f,
_InputIter__l,
const __false_type &
)[inline]

Parameters

iterator __first
iterator __last
_InputIter __f
_InputIter __l
const __false_type &

_M_terminate_string()

void_M_terminate_string()[protected, inline]

_M_terminate_string_aux(const __false_type &)

void_M_terminate_string_aux(const __false_type &__is_integral)[protected, inline]

Parameters

const __false_type & __is_integral

_M_terminate_string_aux(const __true_type &)

void_M_terminate_string_aux(const __true_type &__is_integral)[protected, inline]

Parameters

const __true_type & __is_integral

append(_InputIter, _InputIter)

_Self &append(_InputIter__first,
_InputIter__last
)[inline]

Parameters

_InputIter __first
_InputIter __last

append(const _CharT *, const _CharT *)

_Self &append(const _CharT *__first,
const _CharT *__last
)[inline]

Parameters

const _CharT * __first
const _CharT * __last

append(const _Self &)

_Self &append(const _Self &__s)[inline]

Parameters

const _Self & __s

append(const _Self &, size_type, size_type)

_Self &append(const _Self &__s,
size_type__pos,
size_type__n
)[inline]

Parameters

const _Self & __s
size_type __pos
size_type __n

append(const _CharT *, size_type)

_Self &append(const _CharT *__s,
size_type__n
)[inline]

Parameters

const _CharT * __s
size_type __n

append(const _CharT *)

_Self &append(const _CharT *__s)[inline]

Parameters

const _CharT * __s

append(size_type, _CharT)

_Self &append(size_type__n,
_CharT__c
)

Parameters

size_type __n
_CharT __c

assign(const _Self &)

_Self &assign(const _Self &__s)[inline]

Parameters

const _Self & __s

assign(const _Self &, size_type, size_type)

_Self &assign(const _Self &__s,
size_type__pos,
size_type__n
)[inline]

Parameters

const _Self & __s
size_type __pos
size_type __n

assign(const _CharT *, size_type)

_Self &assign(const _CharT *__s,
size_type__n
)[inline]

Parameters

const _CharT * __s
size_type __n

assign(const _CharT *)

_Self &assign(const _CharT *__s)[inline]

Parameters

const _CharT * __s

assign(size_type, _CharT)

_Self &assign(size_type__n,
_CharT__c
)

Parameters

size_type __n
_CharT __c

assign(_InputIter, _InputIter)

_Self &assign(_InputIter__first,
_InputIter__last
)[inline]

Parameters

_InputIter __first
_InputIter __last

assign(const _CharT *, const _CharT *)

_Self &assign(const _CharT *__f,
const _CharT *__l
)[inline]

Parameters

const _CharT * __f
const _CharT * __l

at(size_type)

const_reference at(size_type__n)const [inline]

Parameters

size_type __n

at(size_type)

reference at(size_type__n)[inline]

Parameters

size_type __n

begin()

iterator begin()[inline]

begin()

const_iterator begin()const [inline]

c_str()

const _CharT *c_str()const [inline]

capacity()

size_type capacity()const [inline]

clear()

voidclear()[inline]

compare(const _Self &)

intcompare(const _Self &__s)const [inline]

Parameters

const _Self & __s

compare(size_type, size_type, const _Self &)

intcompare(size_type__pos1,
size_type__n1,
const _Self &__s
)const [inline]

Parameters

size_type __pos1
size_type __n1
const _Self & __s

compare(size_type, size_type, const _Self &, size_type, size_type)

intcompare(size_type__pos1,
size_type__n1,
const _Self &__s,
size_type__pos2,
size_type__n2
)const [inline]

Parameters

size_type __pos1
size_type __n1
const _Self & __s
size_type __pos2
size_type __n2

compare(const _CharT *)

intcompare(const _CharT *__s)const [inline]

Parameters

const _CharT * __s

compare(size_type, size_type, const _CharT *)

intcompare(size_type__pos1,
size_type__n1,
const _CharT *__s
)const [inline]

Parameters

size_type __pos1
size_type __n1
const _CharT * __s

compare(size_type, size_type, const _CharT *, size_type)

intcompare(size_type__pos1,
size_type__n1,
const _CharT *__s,
size_type__n2
)const [inline]

Parameters

size_type __pos1
size_type __n1
const _CharT * __s
size_type __n2

copy(_CharT *, size_type, size_type)

size_type copy(_CharT *__s,
size_type__n,
size_type__pos = 0
)const [inline]

Parameters

_CharT * __s
size_type __n
size_type __pos = 0

data()

const _CharT *data()const [inline]

empty()

boolempty()const [inline]

end()

iterator end()[inline]

end()

const_iterator end()const [inline]

erase(size_type, size_type)

_Self &erase(size_type__pos = 0,
size_type__n =  npos
)[inline]

Parameters

size_type __pos = 0
size_type __n =  npos

erase(iterator)

iterator erase(iterator__pos)[inline]

Parameters

iterator __pos

erase(iterator, iterator)

iterator erase(iterator__first,
iterator__last
)[inline]

Parameters

iterator __first
iterator __last

find(const _Self &, size_type)

size_type find(const _Self &__s,
size_type__pos = 0
)const [inline]

Parameters

const _Self & __s
size_type __pos = 0

find(const _CharT *, size_type)

size_type find(const _CharT *__s,
size_type__pos = 0
)const [inline]

Parameters

const _CharT * __s
size_type __pos = 0

find(const _CharT *, size_type, size_type)

size_type find(const _CharT *__s,
size_type__pos,
size_type__n
)const

Parameters

const _CharT * __s
size_type __pos
size_type __n

find(_CharT)

size_type find(_CharT__c)const [inline]

Parameters

_CharT __c

find(_CharT, size_type)

size_type find(_CharT__c,
size_type__pos
)const

Parameters

_CharT __c
size_type __pos

find_first_not_of(const _Self &, size_type)

size_type find_first_not_of(const _Self &__s,
size_type__pos = 0
)const [inline]

Parameters

const _Self & __s
size_type __pos = 0

find_first_not_of(const _CharT *, size_type)

size_type find_first_not_of(const _CharT *__s,
size_type__pos = 0
)const [inline]

Parameters

const _CharT * __s
size_type __pos = 0

find_first_not_of(const _CharT *, size_type, size_type)

size_type find_first_not_of(const _CharT *__s,
size_type__pos,
size_type__n
)const

Parameters

const _CharT * __s
size_type __pos
size_type __n

find_first_not_of(_CharT, size_type)

size_type find_first_not_of(_CharT__c,
size_type__pos = 0
)const

Parameters

_CharT __c
size_type __pos = 0

find_first_of(const _Self &, size_type)

size_type find_first_of(const _Self &__s,
size_type__pos = 0
)const [inline]

Parameters

const _Self & __s
size_type __pos = 0

find_first_of(const _CharT *, size_type)

size_type find_first_of(const _CharT *__s,
size_type__pos = 0
)const [inline]

Parameters

const _CharT * __s
size_type __pos = 0

find_first_of(const _CharT *, size_type, size_type)

size_type find_first_of(const _CharT *__s,
size_type__pos,
size_type__n
)const

Parameters

const _CharT * __s
size_type __pos
size_type __n

find_first_of(_CharT, size_type)

size_type find_first_of(_CharT__c,
size_type__pos = 0
)const [inline]

Parameters

_CharT __c
size_type __pos = 0

find_last_not_of(const _Self &, size_type)

size_type find_last_not_of(const _Self &__s,
size_type__pos =  npos
)const [inline]

Parameters

const _Self & __s
size_type __pos =  npos

find_last_not_of(const _CharT *, size_type)

size_type find_last_not_of(const _CharT *__s,
size_type__pos =  npos
)const [inline]

Parameters

const _CharT * __s
size_type __pos =  npos

find_last_not_of(const _CharT *, size_type, size_type)

size_type find_last_not_of(const _CharT *__s,
size_type__pos,
size_type__n
)const

Parameters

const _CharT * __s
size_type __pos
size_type __n

find_last_not_of(_CharT, size_type)

size_type find_last_not_of(_CharT__c,
size_type__pos =  npos
)const

Parameters

_CharT __c
size_type __pos =  npos

find_last_of(const _Self &, size_type)

size_type find_last_of(const _Self &__s,
size_type__pos =  npos
)const [inline]

Parameters

const _Self & __s
size_type __pos =  npos

find_last_of(const _CharT *, size_type)

size_type find_last_of(const _CharT *__s,
size_type__pos =  npos
)const [inline]

Parameters

const _CharT * __s
size_type __pos =  npos

find_last_of(const _CharT *, size_type, size_type)

size_type find_last_of(const _CharT *__s,
size_type__pos,
size_type__n
)const

Parameters

const _CharT * __s
size_type __pos
size_type __n

find_last_of(_CharT, size_type)

size_type find_last_of(_CharT__c,
size_type__pos =  npos
)const [inline]

Parameters

_CharT __c
size_type __pos =  npos

get_allocator()

allocator_type get_allocator()const [inline]

insert(size_type, const _Self &)

_Self &insert(size_type__pos,
const _Self &__s
)[inline]

Parameters

size_type __pos
const _Self & __s

insert(size_type, const _Self &, size_type, size_type)

_Self &insert(size_type__pos,
const _Self &__s,
size_type__beg,
size_type__n
)[inline]

Parameters

size_type __pos
const _Self & __s
size_type __beg
size_type __n

insert(size_type, const _CharT *, size_type)

_Self &insert(size_type__pos,
const _CharT *__s,
size_type__n
)[inline]

Parameters

size_type __pos
const _CharT * __s
size_type __n

insert(size_type, const _CharT *)

_Self &insert(size_type__pos,
const _CharT *__s
)[inline]

Parameters

size_type __pos
const _CharT * __s

insert(size_type, size_type, _CharT)

_Self &insert(size_type__pos,
size_type__n,
_CharT__c
)[inline]

Parameters

size_type __pos
size_type __n
_CharT __c

insert(iterator, _CharT)

iterator insert(iterator__p,
_CharT__c
)[inline]

Parameters

iterator __p
_CharT __c

insert(iterator, size_t, _CharT)

voidinsert(iterator__p,
size_t__n,
_CharT__c
)

Parameters

iterator __p
size_t __n
_CharT __c

insert(iterator, _InputIter, _InputIter)

voidinsert(iterator__p,
_InputIter__first,
_InputIter__last
)[inline]

Parameters

iterator __p
_InputIter __first
_InputIter __last

insert(iterator, const _CharT *, const _CharT *)

voidinsert(iterator__p,
const _CharT *__f,
const _CharT *__l
)[inline]

Parameters

iterator __p
const _CharT * __f
const _CharT * __l

length()

size_type length()const [inline]

max_size()

size_t max_size()const [inline]

operator+=(const _Self &)

_Self &operator+=(const _Self &__s)[inline]

Parameters

const _Self & __s

operator+=(const _CharT *)

_Self &operator+=(const _CharT *__s)[inline]

Parameters

const _CharT * __s

operator+=(_CharT)

_Self &operator+=(_CharT__c)[inline]

Parameters

_CharT __c

operator=(const _Self &)

_Self &operator=(const _Self &__s)[inline]

Parameters

const _Self & __s

operator=(const _CharT *)

_Self &operator=(const _CharT *__s)[inline]

Parameters

const _CharT * __s

operator=(_CharT)

_Self &operator=(_CharT__c)[inline]

Parameters

_CharT __c

operator[](size_type)

const_reference operator[](size_type__n)const [inline]

Parameters

size_type __n

operator[](size_type)

reference operator[](size_type__n)[inline]

Parameters

size_type __n

pop_back()

voidpop_back()[inline]

push_back(_CharT)

voidpush_back(_CharT__c)[inline]

Parameters

_CharT __c

rbegin()

reverse_iterator rbegin()[inline]

rbegin()

const_reverse_iteratorrbegin()const [inline]

rend()

reverse_iterator rend()[inline]

rend()

const_reverse_iteratorrend()const [inline]

replace(size_type, size_type, const _Self &)

_Self &replace(size_type__pos,
size_type__n,
const _Self &__s
)[inline]

Parameters

size_type __pos
size_type __n
const _Self & __s

replace(size_type, size_type, const _Self &, size_type, size_type)

_Self &replace(size_type__pos1,
size_type__n1,
const _Self &__s,
size_type__pos2,
size_type__n2
)[inline]

Parameters

size_type __pos1
size_type __n1
const _Self & __s
size_type __pos2
size_type __n2

replace(size_type, size_type, const _CharT *, size_type)

_Self &replace(size_type__pos,
size_type__n1,
const _CharT *__s,
size_type__n2
)[inline]

Parameters

size_type __pos
size_type __n1
const _CharT * __s
size_type __n2

replace(size_type, size_type, const _CharT *)

_Self &replace(size_type__pos,
size_type__n1,
const _CharT *__s
)[inline]

Parameters

size_type __pos
size_type __n1
const _CharT * __s

replace(size_type, size_type, size_type, _CharT)

_Self &replace(size_type__pos,
size_type__n1,
size_type__n2,
_CharT__c
)[inline]

Parameters

size_type __pos
size_type __n1
size_type __n2
_CharT __c

replace(iterator, iterator, const _Self &)

_Self &replace(iterator__first,
iterator__last,
const _Self &__s
)[inline]

Parameters

iterator __first
iterator __last
const _Self & __s

replace(iterator, iterator, const _CharT *, size_type)

_Self &replace(iterator__first,
iterator__last,
const _CharT *__s,
size_type__n
)[inline]

Parameters

iterator __first
iterator __last
const _CharT * __s
size_type __n

replace(iterator, iterator, const _CharT *)

_Self &replace(iterator__first,
iterator__last,
const _CharT *__s
)[inline]

Parameters

iterator __first
iterator __last
const _CharT * __s

replace(iterator, iterator, size_type, _CharT)

_Self &replace(iterator__first,
iterator__last,
size_type__n,
_CharT__c
)

Parameters

iterator __first
iterator __last
size_type __n
_CharT __c

replace(iterator, iterator, _InputIter, _InputIter)

_Self &replace(iterator__first,
iterator__last,
_InputIter__f,
_InputIter__l
)[inline]

Parameters

iterator __first
iterator __last
_InputIter __f
_InputIter __l

replace(iterator, iterator, const _CharT *, const _CharT *)

_Self &replace(iterator__first,
iterator__last,
const _CharT *__f,
const _CharT *__l
)[inline]

Parameters

iterator __first
iterator __last
const _CharT * __f
const _CharT * __l

reserve(size_type)

voidreserve(size_type = 0)

Parameters

size_type  = 0

resize(size_type, _CharT)

voidresize(size_type__n,
_CharT__c
)[inline]

Parameters

size_type __n
_CharT __c

resize(size_type)

voidresize(size_type__n)[inline]

Parameters

size_type __n

rfind(const _Self &, size_type)

size_type rfind(const _Self &__s,
size_type__pos =  npos
)const [inline]

Parameters

const _Self & __s
size_type __pos =  npos

rfind(const _CharT *, size_type)

size_type rfind(const _CharT *__s,
size_type__pos =  npos
)const [inline]

Parameters

const _CharT * __s
size_type __pos =  npos

rfind(const _CharT *, size_type, size_type)

size_type rfind(const _CharT *__s,
size_type__pos,
size_type__n
)const

Parameters

const _CharT * __s
size_type __pos
size_type __n

rfind(_CharT, size_type)

size_type rfind(_CharT__c,
size_type__pos =  npos
)const

Parameters

_CharT __c
size_type __pos =  npos

size()

size_type size()const [inline]

substr(size_type, size_type)

_Self substr(size_type__pos = 0,
size_type__n =  npos
)const [inline]

Parameters

size_type __pos = 0
size_type __n =  npos

swap(_Self &)

voidswap(_Self &__s)[inline]

Parameters

_Self & __s

Member Type Definitions Documentation

Typedef _Base

typedef _STLP_PRIV _String_base< _CharT, _Alloc >_Base[protected]

Typedef _Char_Is_Integral

typedef _IsIntegral< _CharT >::_Ret_Char_Is_Integral[protected]

Typedef _Char_Is_POD

typedef _IsPOD< _CharT >::_Type_Char_Is_POD[protected]

Typedef _Iterator_category

typedef random_access_iterator_tag _Iterator_category

Typedef _Reserve_t

typedef _String_reserve_t _Reserve_t

Typedef _Self

typedef basic_string< _CharT, _Traits, _Alloc >_Self[protected]

Typedef allocator_type

typedef _Base::allocator_typeallocator_type

Typedef const_iterator

typedef const value_type *const_iterator

Typedef const_pointer

typedef const value_type *const_pointer

Typedef const_reference

typedef const value_type &const_reference

Typedef difference_type

typedef ptrdiff_t difference_type

Typedef iterator

typedef value_type *iterator

Typedef pointer

typedef value_type *pointer

Typedef r_a_i_t

typedef random_access_iterator_tag r_a_i_t[protected]

Typedef reference

typedef value_type &reference

Typedef size_type

typedef _Base::size_typesize_type

Typedef traits_type

typedef _Traitstraits_type

Typedef value_type

typedef _CharTvalue_type

Member Data Documentation

_STLP_DECLARE_RANDOM_ACCESS_REVERSE_ITERATORS

_STLP_DECLARE_RANDOM_ACCESS_REVERSE_ITERATORS

const size_t npos

const size_tnpos[static]