.TH "__gnu_debug::basic_string< _CharT, _Traits, _Allocator >" 3cxx "Sun Jan 6 2013" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME __gnu_debug::basic_string< _CharT, _Traits, _Allocator > \- .SH SYNOPSIS .br .PP .PP Inherits \fBstd::basic_string< _CharT, _Traits, _Allocator >\fP, and \fB__gnu_debug::_Safe_sequence< basic_string< _CharT, _Traits, _Allocator > >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "typedef _Allocator \fBallocator_type\fP" .br .ti -1c .RI "typedef .br \fB__gnu_debug::_Safe_iterator\fP .br < typename .br _Base::const_iterator, .br \fBbasic_string\fP > \fBconst_iterator\fP" .br .ti -1c .RI "typedef _Base::const_pointer \fBconst_pointer\fP" .br .ti -1c .RI "typedef _Base::const_reference \fBconst_reference\fP" .br .ti -1c .RI "typedef \fBstd::reverse_iterator\fP .br < \fBconst_iterator\fP > \fBconst_reverse_iterator\fP" .br .ti -1c .RI "typedef _Base::difference_type \fBdifference_type\fP" .br .ti -1c .RI "typedef .br \fB__gnu_debug::_Safe_iterator\fP .br < typename _Base::iterator, .br \fBbasic_string\fP > \fBiterator\fP" .br .ti -1c .RI "typedef _Base::pointer \fBpointer\fP" .br .ti -1c .RI "typedef _Base::reference \fBreference\fP" .br .ti -1c .RI "typedef \fBstd::reverse_iterator\fP .br < \fBiterator\fP > \fBreverse_iterator\fP" .br .ti -1c .RI "typedef _Base::size_type \fBsize_type\fP" .br .ti -1c .RI "typedef _Traits \fBtraits_type\fP" .br .ti -1c .RI "typedef _Traits::char_type \fBvalue_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBbasic_string\fP (const _Allocator &__a=_Allocator())" .br .ti -1c .RI "\fBbasic_string\fP (const \fB_Base\fP &\fB__base\fP)" .br .ti -1c .RI "\fBbasic_string\fP (const \fBbasic_string\fP &__str)" .br .ti -1c .RI "\fBbasic_string\fP (const \fBbasic_string\fP &__str, size_type __pos, size_type __n=\fB_Base::npos\fP, const _Allocator &__a=_Allocator())" .br .ti -1c .RI "\fBbasic_string\fP (const _CharT *__s, size_type __n, const _Allocator &__a=_Allocator())" .br .ti -1c .RI "\fBbasic_string\fP (const _CharT *__s, const _Allocator &__a=_Allocator())" .br .ti -1c .RI "\fBbasic_string\fP (size_type __n, _CharT __c, const _Allocator &__a=_Allocator())" .br .ti -1c .RI "template \fBbasic_string\fP (_InputIterator __begin, _InputIterator __end, const _Allocator &__a=_Allocator())" .br .ti -1c .RI "\fBbasic_string\fP (\fBbasic_string\fP &&__str) noexcept" .br .ti -1c .RI "\fBbasic_string\fP (\fBstd::initializer_list\fP< _CharT > __l, const _Allocator &__a=_Allocator())" .br .ti -1c .RI "void \fB_M_attach\fP (\fB_Safe_iterator_base\fP *__it, bool __constant)" .br .ti -1c .RI "void \fB_M_attach_single\fP (\fB_Safe_iterator_base\fP *__it, bool __constant) throw ()" .br .ti -1c .RI "\fB_Base\fP & \fB_M_base\fP () _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "const \fB_Base\fP & \fB_M_base\fP () const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "void \fB_M_detach\fP (\fB_Safe_iterator_base\fP *__it)" .br .ti -1c .RI "void \fB_M_detach_single\fP (\fB_Safe_iterator_base\fP *__it) throw ()" .br .ti -1c .RI "void \fB_M_invalidate_all\fP () const " .br .ti -1c .RI "void \fB_M_invalidate_if\fP (_Predicate __pred)" .br .ti -1c .RI "void \fB_M_transfer_from_if\fP (\fB_Safe_sequence\fP &__from, _Predicate __pred)" .br .ti -1c .RI "\fBbasic_string\fP & \fBappend\fP (const \fBbasic_string\fP &__str)" .br .ti -1c .RI "\fBbasic_string\fP & \fBappend\fP (const \fBbasic_string\fP &__str, size_type __pos, size_type __n)" .br .ti -1c .RI "\fBbasic_string\fP & \fBappend\fP (const _CharT *__s, size_type __n)" .br .ti -1c .RI "\fBbasic_string\fP & \fBappend\fP (const _CharT *__s)" .br .ti -1c .RI "\fBbasic_string\fP & \fBappend\fP (size_type __n, _CharT __c)" .br .ti -1c .RI "template \fBbasic_string\fP & \fBappend\fP (_InputIterator __first, _InputIterator __last)" .br .ti -1c .RI "\fBbasic_string\fP & \fBappend\fP (const \fBbasic_string\fP &__str)" .br .ti -1c .RI "\fBbasic_string\fP & \fBappend\fP (const \fBbasic_string\fP &__str, size_type __pos, size_type __n)" .br .ti -1c .RI "\fBbasic_string\fP & \fBappend\fP (initializer_list< _CharT > __l)" .br .ti -1c .RI "\fBbasic_string\fP & \fBassign\fP (const \fBbasic_string\fP &__x)" .br .ti -1c .RI "\fBbasic_string\fP & \fBassign\fP (\fBbasic_string\fP &&__x)" .br .ti -1c .RI "\fBbasic_string\fP & \fBassign\fP (const \fBbasic_string\fP &__str, size_type __pos, size_type __n)" .br .ti -1c .RI "\fBbasic_string\fP & \fBassign\fP (const _CharT *__s, size_type __n)" .br .ti -1c .RI "\fBbasic_string\fP & \fBassign\fP (const _CharT *__s)" .br .ti -1c .RI "\fBbasic_string\fP & \fBassign\fP (size_type __n, _CharT __c)" .br .ti -1c .RI "template \fBbasic_string\fP & \fBassign\fP (_InputIterator __first, _InputIterator __last)" .br .ti -1c .RI "\fBbasic_string\fP & \fBassign\fP (\fBstd::initializer_list\fP< _CharT > __l)" .br .ti -1c .RI "\fBbasic_string\fP & \fBassign\fP (const \fBbasic_string\fP &__str)" .br .ti -1c .RI "\fBbasic_string\fP & \fBassign\fP (\fBbasic_string\fP &&__str)" .br .ti -1c .RI "\fBbasic_string\fP & \fBassign\fP (const \fBbasic_string\fP &__str, size_type __pos, size_type __n)" .br .ti -1c .RI "const_reference \fBat\fP (size_type __n) const" .br .ti -1c .RI "reference \fBat\fP (size_type __n)" .br .ti -1c .RI "reference \fBback\fP ()" .br .ti -1c .RI "const_reference \fBback\fP () const" .br .ti -1c .RI "\fBiterator\fP \fBbegin\fP () _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "\fBconst_iterator\fP \fBbegin\fP () const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "const _CharT * \fBc_str\fP () const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBcapacity\fP () const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "\fBconst_iterator\fP \fBcbegin\fP () const noexcept" .br .ti -1c .RI "\fBconst_iterator\fP \fBcend\fP () const noexcept" .br .ti -1c .RI "void \fBclear\fP () _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "int \fBcompare\fP (const \fBbasic_string\fP &__str) const " .br .ti -1c .RI "int \fBcompare\fP (size_type __pos1, size_type __n1, const \fBbasic_string\fP &__str) const " .br .ti -1c .RI "int \fBcompare\fP (size_type __pos1, size_type __n1, const \fBbasic_string\fP &__str, size_type __pos2, size_type __n2) const " .br .ti -1c .RI "int \fBcompare\fP (const _CharT *__s) const " .br .ti -1c .RI "int \fBcompare\fP (size_type __pos1, size_type __n1, const _CharT *__s) const " .br .ti -1c .RI "int \fBcompare\fP (size_type __pos1, size_type __n1, const _CharT *__s, size_type __n2) const " .br .ti -1c .RI "int \fBcompare\fP (const \fBbasic_string\fP &__str) const" .br .ti -1c .RI "int \fBcompare\fP (size_type __pos, size_type __n, const \fBbasic_string\fP &__str) const" .br .ti -1c .RI "int \fBcompare\fP (size_type __pos1, size_type __n1, const \fBbasic_string\fP &__str, size_type __pos2, size_type __n2) const" .br .ti -1c .RI "size_type \fBcopy\fP (_CharT *__s, size_type __n, size_type __pos=0) const " .br .ti -1c .RI "\fBconst_reverse_iterator\fP \fBcrbegin\fP () const noexcept" .br .ti -1c .RI "\fBconst_reverse_iterator\fP \fBcrend\fP () const noexcept" .br .ti -1c .RI "const _CharT * \fBdata\fP () const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "bool \fBempty\fP () const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "\fBiterator\fP \fBend\fP () _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "\fBconst_iterator\fP \fBend\fP () const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "\fBbasic_string\fP & \fBerase\fP (size_type __pos=0, size_type __n=\fB_Base::npos\fP)" .br .ti -1c .RI "\fBiterator\fP \fBerase\fP (\fBiterator\fP __position)" .br .ti -1c .RI "\fBiterator\fP \fBerase\fP (\fBiterator\fP __first, \fBiterator\fP __last)" .br .ti -1c .RI "\fBiterator\fP \fBerase\fP (\fBiterator\fP __position)" .br .ti -1c .RI "\fBiterator\fP \fBerase\fP (\fBiterator\fP __first, \fBiterator\fP __last)" .br .ti -1c .RI "size_type \fBfind\fP (const \fBbasic_string\fP &__str, size_type __pos=0) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBfind\fP (const _CharT *__s, size_type __pos, size_type __n) const " .br .ti -1c .RI "size_type \fBfind\fP (const _CharT *__s, size_type __pos=0) const " .br .ti -1c .RI "size_type \fBfind\fP (_CharT __c, size_type __pos=0) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBfind\fP (const \fBbasic_string\fP &__str, size_type __pos=0) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBfind_first_not_of\fP (const \fBbasic_string\fP &__str, size_type __pos=0) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBfind_first_not_of\fP (const _CharT *__s, size_type __pos, size_type __n) const " .br .ti -1c .RI "size_type \fBfind_first_not_of\fP (const _CharT *__s, size_type __pos=0) const " .br .ti -1c .RI "size_type \fBfind_first_not_of\fP (_CharT __c, size_type __pos=0) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBfind_first_not_of\fP (const \fBbasic_string\fP &__str, size_type __pos=0) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBfind_first_of\fP (const \fBbasic_string\fP &__str, size_type __pos=0) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBfind_first_of\fP (const _CharT *__s, size_type __pos, size_type __n) const " .br .ti -1c .RI "size_type \fBfind_first_of\fP (const _CharT *__s, size_type __pos=0) const " .br .ti -1c .RI "size_type \fBfind_first_of\fP (_CharT __c, size_type __pos=0) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBfind_first_of\fP (const \fBbasic_string\fP &__str, size_type __pos=0) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBfind_last_not_of\fP (const \fBbasic_string\fP &__str, size_type __pos=\fB_Base::npos\fP) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBfind_last_not_of\fP (const _CharT *__s, size_type __pos, size_type __n) const " .br .ti -1c .RI "size_type \fBfind_last_not_of\fP (const _CharT *__s, size_type __pos=\fB_Base::npos\fP) const " .br .ti -1c .RI "size_type \fBfind_last_not_of\fP (_CharT __c, size_type __pos=\fB_Base::npos\fP) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBfind_last_not_of\fP (const \fBbasic_string\fP &__str, size_type __pos=\fBnpos\fP) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBfind_last_of\fP (const \fBbasic_string\fP &__str, size_type __pos=\fB_Base::npos\fP) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBfind_last_of\fP (const _CharT *__s, size_type __pos, size_type __n) const " .br .ti -1c .RI "size_type \fBfind_last_of\fP (const _CharT *__s, size_type __pos=\fB_Base::npos\fP) const " .br .ti -1c .RI "size_type \fBfind_last_of\fP (_CharT __c, size_type __pos=\fB_Base::npos\fP) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBfind_last_of\fP (const \fBbasic_string\fP &__str, size_type __pos=\fBnpos\fP) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "reference \fBfront\fP ()" .br .ti -1c .RI "const_reference \fBfront\fP () const" .br .ti -1c .RI "allocator_type \fBget_allocator\fP () const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "\fBbasic_string\fP & \fBinsert\fP (size_type __pos1, const \fBbasic_string\fP &__str)" .br .ti -1c .RI "\fBbasic_string\fP & \fBinsert\fP (size_type __pos1, const \fBbasic_string\fP &__str, size_type __pos2, size_type __n)" .br .ti -1c .RI "\fBbasic_string\fP & \fBinsert\fP (size_type __pos, const _CharT *__s, size_type __n)" .br .ti -1c .RI "\fBbasic_string\fP & \fBinsert\fP (size_type __pos, const _CharT *__s)" .br .ti -1c .RI "\fBbasic_string\fP & \fBinsert\fP (size_type __pos, size_type __n, _CharT __c)" .br .ti -1c .RI "\fBiterator\fP \fBinsert\fP (\fBiterator\fP __p, _CharT __c)" .br .ti -1c .RI "void \fBinsert\fP (\fBiterator\fP __p, size_type __n, _CharT __c)" .br .ti -1c .RI "template void \fBinsert\fP (\fBiterator\fP __p, _InputIterator __first, _InputIterator __last)" .br .ti -1c .RI "void \fBinsert\fP (\fBiterator\fP __p, \fBstd::initializer_list\fP< _CharT > __l)" .br .ti -1c .RI "void \fBinsert\fP (\fBiterator\fP __p, size_type __n, _CharT __c)" .br .ti -1c .RI "void \fBinsert\fP (\fBiterator\fP __p, _InputIterator __beg, _InputIterator __end)" .br .ti -1c .RI "void \fBinsert\fP (\fBiterator\fP __p, initializer_list< _CharT > __l)" .br .ti -1c .RI "\fBbasic_string\fP & \fBinsert\fP (size_type __pos1, const \fBbasic_string\fP &__str)" .br .ti -1c .RI "\fBbasic_string\fP & \fBinsert\fP (size_type __pos1, const \fBbasic_string\fP &__str, size_type __pos2, size_type __n)" .br .ti -1c .RI "\fBiterator\fP \fBinsert\fP (\fBiterator\fP __p, _CharT __c)" .br .ti -1c .RI "size_type \fBlength\fP () const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBmax_size\fP () const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "\fBbasic_string\fP & \fBoperator+=\fP (const \fBbasic_string\fP &__str)" .br .ti -1c .RI "\fBbasic_string\fP & \fBoperator+=\fP (const _CharT *__s)" .br .ti -1c .RI "\fBbasic_string\fP & \fBoperator+=\fP (_CharT __c)" .br .ti -1c .RI "\fBbasic_string\fP & \fBoperator+=\fP (\fBstd::initializer_list\fP< _CharT > __l)" .br .ti -1c .RI "\fBbasic_string\fP & \fBoperator+=\fP (const \fBbasic_string\fP &__str)" .br .ti -1c .RI "\fBbasic_string\fP & \fBoperator=\fP (const \fBbasic_string\fP &__str)" .br .ti -1c .RI "\fBbasic_string\fP & \fBoperator=\fP (const _CharT *__s)" .br .ti -1c .RI "\fBbasic_string\fP & \fBoperator=\fP (_CharT __c)" .br .ti -1c .RI "\fBbasic_string\fP & \fBoperator=\fP (\fBbasic_string\fP &&__str)" .br .ti -1c .RI "\fBbasic_string\fP & \fBoperator=\fP (\fBstd::initializer_list\fP< _CharT > __l)" .br .ti -1c .RI "const_reference \fBoperator[]\fP (size_type __pos) const " .br .ti -1c .RI "reference \fBoperator[]\fP (size_type __pos)" .br .ti -1c .RI "void \fBpop_back\fP ()" .br .ti -1c .RI "void \fBpush_back\fP (_CharT __c)" .br .ti -1c .RI "\fBreverse_iterator\fP \fBrbegin\fP () _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "\fBconst_reverse_iterator\fP \fBrbegin\fP () const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "\fBreverse_iterator\fP \fBrend\fP () _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "\fBconst_reverse_iterator\fP \fBrend\fP () const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (size_type __pos1, size_type __n1, const \fBbasic_string\fP &__str)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (size_type __pos1, size_type __n1, const \fBbasic_string\fP &__str, size_type __pos2, size_type __n2)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (size_type __pos, size_type __n1, const _CharT *__s, size_type __n2)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (size_type __pos, size_type __n1, const _CharT *__s)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (size_type __pos, size_type __n1, size_type __n2, _CharT __c)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (\fBiterator\fP __i1, \fBiterator\fP __i2, const \fBbasic_string\fP &__str)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (\fBiterator\fP __i1, \fBiterator\fP __i2, const _CharT *__s, size_type __n)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (\fBiterator\fP __i1, \fBiterator\fP __i2, const _CharT *__s)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (\fBiterator\fP __i1, \fBiterator\fP __i2, size_type __n, _CharT __c)" .br .ti -1c .RI "template \fBbasic_string\fP & \fBreplace\fP (\fBiterator\fP __i1, \fBiterator\fP __i2, _InputIterator __j1, _InputIterator __j2)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (\fBiterator\fP __i1, \fBiterator\fP __i2, \fBstd::initializer_list\fP< _CharT > __l)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (size_type __pos, size_type __n, const \fBbasic_string\fP &__str)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (size_type __pos1, size_type __n1, const \fBbasic_string\fP &__str, size_type __pos2, size_type __n2)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (\fBiterator\fP __i1, \fBiterator\fP __i2, const \fBbasic_string\fP &__str)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (\fBiterator\fP __i1, \fBiterator\fP __i2, const _CharT *__s, size_type __n)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (\fBiterator\fP __i1, \fBiterator\fP __i2, const _CharT *__s)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (\fBiterator\fP __i1, \fBiterator\fP __i2, size_type __n, _CharT __c)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (\fBiterator\fP __i1, \fBiterator\fP __i2, _InputIterator __k1, _InputIterator __k2)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (\fBiterator\fP __i1, \fBiterator\fP __i2, _CharT *__k1, _CharT *__k2)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (\fBiterator\fP __i1, \fBiterator\fP __i2, const _CharT *__k1, const _CharT *__k2)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (\fBiterator\fP __i1, \fBiterator\fP __i2, \fBiterator\fP __k1, \fBiterator\fP __k2)" .br .ti -1c .RI "\fBbasic_string\fP & \fBreplace\fP (\fBiterator\fP __i1, \fBiterator\fP __i2, initializer_list< _CharT > __l)" .br .ti -1c .RI "void \fBreserve\fP (size_type __res_arg=0)" .br .ti -1c .RI "void \fBresize\fP (size_type __n, _CharT __c)" .br .ti -1c .RI "void \fBresize\fP (size_type __n)" .br .ti -1c .RI "size_type \fBrfind\fP (const \fBbasic_string\fP &__str, size_type __pos=\fB_Base::npos\fP) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBrfind\fP (const _CharT *__s, size_type __pos, size_type __n) const " .br .ti -1c .RI "size_type \fBrfind\fP (const _CharT *__s, size_type __pos=\fB_Base::npos\fP) const " .br .ti -1c .RI "size_type \fBrfind\fP (_CharT __c, size_type __pos=\fB_Base::npos\fP) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "size_type \fBrfind\fP (const \fBbasic_string\fP &__str, size_type __pos=\fBnpos\fP) const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "void \fBshrink_to_fit\fP ()" .br .ti -1c .RI "size_type \fBsize\fP () const _GLIBCXX_NOEXCEPT" .br .ti -1c .RI "\fBbasic_string\fP \fBsubstr\fP (size_type __pos=0, size_type __n=\fB_Base::npos\fP) const " .br .ti -1c .RI "void \fBswap\fP (\fBbasic_string\fP< _CharT, _Traits, _Allocator > &__x)" .br .ti -1c .RI "void \fBswap\fP (\fBbasic_string\fP &__s)" .br .in -1c .SS "Public Attributes" .in +1c .ti -1c .RI "\fB_Safe_iterator_base\fP * \fB_M_const_iterators\fP" .br .ti -1c .RI "\fB_Safe_iterator_base\fP * \fB_M_iterators\fP" .br .ti -1c .RI "unsigned int \fB_M_version\fP" .br .in -1c .SS "Static Public Attributes" .in +1c .ti -1c .RI "static const size_type \fBnpos\fP" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "void \fB_M_detach_all\fP ()" .br .ti -1c .RI "void \fB_M_detach_singular\fP ()" .br .ti -1c .RI "__gnu_cxx::__mutex & \fB_M_get_mutex\fP () throw ()" .br .ti -1c .RI "void \fB_M_revalidate_singular\fP ()" .br .ti -1c .RI "void \fB_M_swap\fP (\fB_Safe_sequence_base\fP &__x)" .br .in -1c .SH "Detailed Description" .PP .SS "template, typename _Allocator = std::allocator<_CharT>>class __gnu_debug::basic_string< _CharT, _Traits, _Allocator >" Class \fBstd::basic_string\fP with safety/checking/debug instrumentation\&. .PP Definition at line 42 of file debug/string\&. .SH "Member Function Documentation" .PP .SS "void __gnu_debug::_Safe_sequence_base::_M_attach (\fB_Safe_iterator_base\fP *__it, bool__constant)\fC [inherited]\fP" Attach an iterator to this sequence\&. .SS "void __gnu_debug::_Safe_sequence_base::_M_attach_single (\fB_Safe_iterator_base\fP *__it, bool__constant) throw ()\fC [inherited]\fP" Likewise but not thread safe\&. .SS "void __gnu_debug::_Safe_sequence_base::_M_detach (\fB_Safe_iterator_base\fP *__it)\fC [inherited]\fP" Detach an iterator from this sequence .SS "void __gnu_debug::_Safe_sequence_base::_M_detach_all ()\fC [protected]\fP, \fC [inherited]\fP" Detach all iterators, leaving them singular\&. .PP Referenced by __gnu_debug::_Safe_sequence_base::~_Safe_sequence_base()\&. .SS "void __gnu_debug::_Safe_sequence_base::_M_detach_single (\fB_Safe_iterator_base\fP *__it) throw ()\fC [inherited]\fP" Likewise but not thread safe\&. .SS "void __gnu_debug::_Safe_sequence_base::_M_detach_singular ()\fC [protected]\fP, \fC [inherited]\fP" Detach all singular iterators\&. .PP \fBPostcondition:\fP .RS 4 for all iterators i attached to this sequence, i->_M_version == _M_version\&. .RE .PP .SS "__gnu_cxx::__mutex& __gnu_debug::_Safe_sequence_base::_M_get_mutex () throw ()\fC [protected]\fP, \fC [inherited]\fP" For use in \fB_Safe_sequence\fP\&. .PP Referenced by __gnu_debug::_Safe_sequence< _Sequence >::_M_transfer_from_if()\&. .SS "void __gnu_debug::_Safe_sequence_base::_M_invalidate_all () const\fC [inline]\fP, \fC [inherited]\fP" Invalidates all iterators\&. .PP Definition at line 234 of file safe_base\&.h\&. .PP References __gnu_debug::_Safe_sequence_base::_M_version\&. .SS "void \fB__gnu_debug::_Safe_sequence\fP< \fBbasic_string\fP< _CharT, _Traits, _Allocator > >::_M_invalidate_if (_Predicate__pred)\fC [inherited]\fP" .PP .nf Invalidates all iterators @c x that reference this sequence, .fi .PP are not singular, and for which \fC__pred(x)\fP returns \fCtrue\fP\&. \fC__pred\fP will be invoked with the normal iterators nested in the safe ones\&. .SS "void __gnu_debug::_Safe_sequence_base::_M_revalidate_singular ()\fC [protected]\fP, \fC [inherited]\fP" Revalidates all attached singular iterators\&. This method may be used to validate iterators that were invalidated before (but for some reason, such as an exception, need to become valid again)\&. .SS "void __gnu_debug::_Safe_sequence_base::_M_swap (\fB_Safe_sequence_base\fP &__x)\fC [protected]\fP, \fC [inherited]\fP" Swap this sequence with the given sequence\&. This operation also swaps ownership of the iterators, so that when the operation is complete all iterators that originally referenced one container now reference the other container\&. .SS "void \fB__gnu_debug::_Safe_sequence\fP< \fBbasic_string\fP< _CharT, _Traits, _Allocator > >::_M_transfer_from_if (\fB_Safe_sequence\fP< \fBbasic_string\fP< _CharT, _Traits, _Allocator > > &__from, _Predicate__pred)\fC [inherited]\fP" .PP .nf Transfers all iterators @c x that reference @c from sequence, .fi .PP are not singular, and for which \fC__pred(x)\fP returns \fCtrue\fP\&. \fC__pred\fP will be invoked with the normal iterators nested in the safe ones\&. .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::append (const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str)\fC [inherited]\fP" .PP Append a string to this string\&. \fBParameters:\fP .RS 4 \fI__str\fP The string to append\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::append (const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str, size_type__pos, size_type__n)\fC [inherited]\fP" .PP Append a substring\&. \fBParameters:\fP .RS 4 \fI__str\fP The string to append\&. .br \fI__pos\fP Index of the first character of str to append\&. .br \fI__n\fP The number of characters to append\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::out_of_range\fP\fP if \fI__pos\fP is not a valid index\&. .RE .PP This function appends \fI__n\fP characters from \fI__str\fP starting at \fI__pos\fP to this string\&. If \fI__n\fP is is larger than the number of available characters in \fI__str\fP, the remainder of \fI__str\fP is appended\&. .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::append (\fBinitializer_list\fP< _CharT >__l)\fC [inline]\fP, \fC [inherited]\fP" .PP Append an initializer_list of characters\&. \fBParameters:\fP .RS 4 \fI__l\fP The initializer_list of characters to append\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP .PP Definition at line 1027 of file basic_string\&.h\&. .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::assign (const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str)\fC [inherited]\fP" .PP Set value to contents of another string\&. \fBParameters:\fP .RS 4 \fI__str\fP Source string to use\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::assign (\fBbasic_string\fP< _CharT, _Traits, _Allocator > &&__str)\fC [inline]\fP, \fC [inherited]\fP" .PP Set value to contents of another string\&. \fBParameters:\fP .RS 4 \fI__str\fP Source string to use\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP This function sets this string to the exact contents of \fI__str\fP\&. \fI__str\fP is a valid, but unspecified string\&. .PP Definition at line 1076 of file basic_string\&.h\&. .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::assign (const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str, size_type__pos, size_type__n)\fC [inline]\fP, \fC [inherited]\fP" .PP Set value to a substring of a string\&. \fBParameters:\fP .RS 4 \fI__str\fP The string to use\&. .br \fI__pos\fP Index of the first character of str\&. .br \fI__n\fP Number of characters to use\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::out_of_range\fP\fP if \fIpos\fP is not a valid index\&. .RE .PP This function sets this string to the substring of \fI__str\fP consisting of \fI__n\fP characters at \fI__pos\fP\&. If \fI__n\fP is is larger than the number of available characters in \fI__str\fP, the remainder of \fI__str\fP is used\&. .PP Definition at line 1097 of file basic_string\&.h\&. .SS "const_reference \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::at (size_type__n) const\fC [inline]\fP, \fC [inherited]\fP" .PP Provides access to the data contained in the string\&. \fBParameters:\fP .RS 4 \fI__n\fP The index of the character to access\&. .RE .PP \fBReturns:\fP .RS 4 Read-only (const) reference to the character\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::out_of_range\fP\fP If \fIn\fP is an invalid index\&. .RE .PP This function provides for safer data access\&. The parameter is first checked that it is in the range of the string\&. The function throws out_of_range if the check fails\&. .PP Definition at line 861 of file basic_string\&.h\&. .SS "reference \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::at (size_type__n)\fC [inline]\fP, \fC [inherited]\fP" .PP Provides access to the data contained in the string\&. \fBParameters:\fP .RS 4 \fI__n\fP The index of the character to access\&. .RE .PP \fBReturns:\fP .RS 4 Read/write reference to the character\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::out_of_range\fP\fP If \fIn\fP is an invalid index\&. .RE .PP This function provides for safer data access\&. The parameter is first checked that it is in the range of the string\&. The function throws out_of_range if the check fails\&. Success results in unsharing the string\&. .PP Definition at line 880 of file basic_string\&.h\&. .SS "reference \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::back ()\fC [inline]\fP, \fC [inherited]\fP" Returns a read/write reference to the data at the last element of the string\&. .PP Definition at line 910 of file basic_string\&.h\&. .SS "const_reference \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::back () const\fC [inline]\fP, \fC [inherited]\fP" Returns a read-only (constant) reference to the data at the last element of the string\&. .PP Definition at line 918 of file basic_string\&.h\&. .SS "size_type \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::capacity () const\fC [inline]\fP, \fC [inherited]\fP" Returns the total number of characters that the string can hold before needing to allocate more memory\&. .PP Definition at line 773 of file basic_string\&.h\&. .SS "int \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::compare (const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str) const\fC [inline]\fP, \fC [inherited]\fP" .PP Compare to a string\&. \fBParameters:\fP .RS 4 \fI__str\fP String to compare against\&. .RE .PP \fBReturns:\fP .RS 4 Integer < 0, 0, or > 0\&. .RE .PP Returns an integer < 0 if this string is ordered before \fI__str\fP, 0 if their values are equivalent, or > 0 if this string is ordered after \fI__str\fP\&. Determines the effective length rlen of the strings to compare as the smallest of \fBsize()\fP and \fBstr\&.size()\fP\&. The function then compares the two strings by calling traits::compare(data(), str\&.data(),rlen)\&. If the result of the comparison is nonzero returns it, otherwise the shorter one is ordered first\&. .PP Definition at line 2222 of file basic_string\&.h\&. .SS "int \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::compare (size_type__pos, size_type__n, const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str) const\fC [inherited]\fP" .PP Compare substring to a string\&. \fBParameters:\fP .RS 4 \fI__pos\fP Index of first character of substring\&. .br \fI__n\fP Number of characters in substring\&. .br \fI__str\fP String to compare against\&. .RE .PP \fBReturns:\fP .RS 4 Integer < 0, 0, or > 0\&. .RE .PP Form the substring of this string from the \fI__n\fP characters starting at \fI__pos\fP\&. Returns an integer < 0 if the substring is ordered before \fI__str\fP, 0 if their values are equivalent, or > 0 if the substring is ordered after \fI__str\fP\&. Determines the effective length rlen of the strings to compare as the smallest of the length of the substring and \fI\fB__str\&.size()\fP\fP\&. The function then compares the two strings by calling traits::compare(substring\&.data(),str\&.data(),rlen)\&. If the result of the comparison is nonzero returns it, otherwise the shorter one is ordered first\&. .SS "int \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::compare (size_type__pos1, size_type__n1, const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str, size_type__pos2, size_type__n2) const\fC [inherited]\fP" .PP Compare substring to a substring\&. \fBParameters:\fP .RS 4 \fI__pos1\fP Index of first character of substring\&. .br \fI__n1\fP Number of characters in substring\&. .br \fI__str\fP String to compare against\&. .br \fI__pos2\fP Index of first character of substring of str\&. .br \fI__n2\fP Number of characters in substring of str\&. .RE .PP \fBReturns:\fP .RS 4 Integer < 0, 0, or > 0\&. .RE .PP Form the substring of this string from the \fI__n1\fP characters starting at \fI__pos1\fP\&. Form the substring of \fI__str\fP from the \fI__n2\fP characters starting at \fI__pos2\fP\&. Returns an integer < 0 if this substring is ordered before the substring of \fI__str\fP, 0 if their values are equivalent, or > 0 if this substring is ordered after the substring of \fI__str\fP\&. Determines the effective length rlen of the strings to compare as the smallest of the lengths of the substrings\&. The function then compares the two strings by calling traits::compare(substring\&.data(),str\&.substr(pos2,n2)\&.data(),rlen)\&. If the result of the comparison is nonzero returns it, otherwise the shorter one is ordered first\&. .SS "bool \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::empty () const\fC [inline]\fP, \fC [inherited]\fP" Returns true if the string is empty\&. Equivalent to \fC*this == ''\fP\&. .PP Definition at line 808 of file basic_string\&.h\&. .SS "\fBiterator\fP \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::erase (iterator__position)\fC [inline]\fP, \fC [inherited]\fP" .PP Remove one character\&. \fBParameters:\fP .RS 4 \fI__position\fP Iterator referencing the character to remove\&. .RE .PP \fBReturns:\fP .RS 4 iterator referencing same location after removal\&. .RE .PP Removes the character at \fI__position\fP from this string\&. The value of the string doesn't change if an error is thrown\&. .PP Definition at line 1375 of file basic_string\&.h\&. .SS "\fBiterator\fP \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::erase (iterator__first, iterator__last)\fC [inherited]\fP" .PP Remove a range of characters\&. \fBParameters:\fP .RS 4 \fI__first\fP Iterator referencing the first character to remove\&. .br \fI__last\fP Iterator referencing the end of the range\&. .RE .PP \fBReturns:\fP .RS 4 Iterator referencing location of first after removal\&. .RE .PP Removes the characters in the range [first,last) from this string\&. The value of the string doesn't change if an error is thrown\&. .SS "size_type \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::find (const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str, size_type__pos = \fC0\fP) const\fC [inline]\fP, \fC [inherited]\fP" .PP Find position of a string\&. \fBParameters:\fP .RS 4 \fI__str\fP String to locate\&. .br \fI__pos\fP Index of character to search from (default 0)\&. .RE .PP \fBReturns:\fP .RS 4 Index of start of first occurrence\&. .RE .PP Starting from \fI__pos\fP, searches forward for value of \fI__str\fP within this string\&. If found, returns the index where it begins\&. If not found, returns npos\&. .PP Definition at line 1843 of file basic_string\&.h\&. .SS "size_type \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::find_first_not_of (const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str, size_type__pos = \fC0\fP) const\fC [inline]\fP, \fC [inherited]\fP" .PP Find position of a character not in string\&. \fBParameters:\fP .RS 4 \fI__str\fP String containing characters to avoid\&. .br \fI__pos\fP Index of character to search from (default 0)\&. .RE .PP \fBReturns:\fP .RS 4 Index of first occurrence\&. .RE .PP Starting from \fI__pos\fP, searches forward for a character not contained in \fI__str\fP within this string\&. If found, returns the index where it was found\&. If not found, returns npos\&. .PP Definition at line 2076 of file basic_string\&.h\&. .SS "size_type \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::find_first_of (const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str, size_type__pos = \fC0\fP) const\fC [inline]\fP, \fC [inherited]\fP" .PP Find position of a character of string\&. \fBParameters:\fP .RS 4 \fI__str\fP String containing characters to locate\&. .br \fI__pos\fP Index of character to search from (default 0)\&. .RE .PP \fBReturns:\fP .RS 4 Index of first occurrence\&. .RE .PP Starting from \fI__pos\fP, searches forward for one of the characters of \fI__str\fP within this string\&. If found, returns the index where it was found\&. If not found, returns npos\&. .PP Definition at line 1949 of file basic_string\&.h\&. .SS "size_type \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::find_last_not_of (const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str, size_type__pos = \fCnpos\fP) const\fC [inline]\fP, \fC [inherited]\fP" .PP Find last position of a character not in string\&. \fBParameters:\fP .RS 4 \fI__str\fP String containing characters to avoid\&. .br \fI__pos\fP Index of character to search back from (default end)\&. .RE .PP \fBReturns:\fP .RS 4 Index of last occurrence\&. .RE .PP Starting from \fI__pos\fP, searches backward for a character not contained in \fI__str\fP within this string\&. If found, returns the index where it was found\&. If not found, returns npos\&. .PP Definition at line 2139 of file basic_string\&.h\&. .SS "size_type \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::find_last_of (const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str, size_type__pos = \fCnpos\fP) const\fC [inline]\fP, \fC [inherited]\fP" .PP Find last position of a character of string\&. \fBParameters:\fP .RS 4 \fI__str\fP String containing characters to locate\&. .br \fI__pos\fP Index of character to search back from (default end)\&. .RE .PP \fBReturns:\fP .RS 4 Index of last occurrence\&. .RE .PP Starting from \fI__pos\fP, searches backward for one of the characters of \fI__str\fP within this string\&. If found, returns the index where it was found\&. If not found, returns npos\&. .PP Definition at line 2013 of file basic_string\&.h\&. .SS "reference \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::front ()\fC [inline]\fP, \fC [inherited]\fP" Returns a read/write reference to the data at the first element of the string\&. .PP Definition at line 894 of file basic_string\&.h\&. .SS "const_reference \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::front () const\fC [inline]\fP, \fC [inherited]\fP" Returns a read-only (constant) reference to the data at the first element of the string\&. .PP Definition at line 902 of file basic_string\&.h\&. .SS "allocator_type \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::get_allocator () const\fC [inline]\fP, \fC [inherited]\fP" .PP Return copy of allocator used to construct this string\&. .PP Definition at line 1814 of file basic_string\&.h\&. .SS "void \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::insert (iterator__p, size_type__n, _CharT__c)\fC [inline]\fP, \fC [inherited]\fP" .PP Insert multiple characters\&. \fBParameters:\fP .RS 4 \fI__p\fP Iterator referencing location in string to insert at\&. .br \fI__n\fP Number of characters to insert .br \fI__c\fP The character to insert\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::length_error\fP\fP If new length exceeds \fCmax_size()\fP\&. .RE .PP Inserts \fI__n\fP copies of character \fI__c\fP starting at the position referenced by iterator \fI__p\fP\&. If adding characters causes the length to exceed max_size(), length_error is thrown\&. The value of the string doesn't change if an error is thrown\&. .PP Definition at line 1182 of file basic_string\&.h\&. .SS "void \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::insert (iterator__p, _InputIterator__beg, _InputIterator__end)\fC [inline]\fP, \fC [inherited]\fP" .PP Insert a range of characters\&. \fBParameters:\fP .RS 4 \fI__p\fP Iterator referencing location in string to insert at\&. .br \fI__beg\fP Start of range\&. .br \fI__end\fP End of range\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::length_error\fP\fP If new length exceeds \fCmax_size()\fP\&. .RE .PP Inserts characters in range [\fBbeg,\fPend)\&. If adding characters causes the length to exceed max_size(), length_error is thrown\&. The value of the string doesn't change if an error is thrown\&. .PP Definition at line 1199 of file basic_string\&.h\&. .SS "void \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::insert (iterator__p, \fBinitializer_list\fP< _CharT >__l)\fC [inline]\fP, \fC [inherited]\fP" .PP Insert an initializer_list of characters\&. \fBParameters:\fP .RS 4 \fI__p\fP Iterator referencing location in string to insert at\&. .br \fI__l\fP The initializer_list of characters to insert\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::length_error\fP\fP If new length exceeds \fCmax_size()\fP\&. .RE .PP .PP Definition at line 1210 of file basic_string\&.h\&. .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::insert (size_type__pos1, const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str)\fC [inline]\fP, \fC [inherited]\fP" .PP Insert value of a string\&. \fBParameters:\fP .RS 4 \fI__pos1\fP Iterator referencing location in string to insert at\&. .br \fI__str\fP The string to insert\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::length_error\fP\fP If new length exceeds \fCmax_size()\fP\&. .RE .PP Inserts value of \fI__str\fP starting at \fI__pos1\fP\&. If adding characters causes the length to exceed max_size(), length_error is thrown\&. The value of the string doesn't change if an error is thrown\&. .PP Definition at line 1230 of file basic_string\&.h\&. .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::insert (size_type__pos1, const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str, size_type__pos2, size_type__n)\fC [inline]\fP, \fC [inherited]\fP" .PP Insert a substring\&. \fBParameters:\fP .RS 4 \fI__pos1\fP Iterator referencing location in string to insert at\&. .br \fI__str\fP The string to insert\&. .br \fI__pos2\fP Start of characters in str to insert\&. .br \fI__n\fP Number of characters to insert\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::length_error\fP\fP If new length exceeds \fCmax_size()\fP\&. .br \fI\fBstd::out_of_range\fP\fP If \fIpos1\fP > \fBsize()\fP or \fI__pos2\fP > \fI\fBstr\&.size()\fP\fP\&. .RE .PP Starting at \fIpos1\fP, insert \fI__n\fP character of \fI__str\fP beginning with \fI__pos2\fP\&. If adding characters causes the length to exceed max_size(), length_error is thrown\&. If \fI__pos1\fP is beyond the end of this string or \fI__pos2\fP is beyond the end of \fI__str\fP, out_of_range is thrown\&. The value of the string doesn't change if an error is thrown\&. .PP Definition at line 1252 of file basic_string\&.h\&. .SS "\fBiterator\fP \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::insert (iterator__p, _CharT__c)\fC [inline]\fP, \fC [inherited]\fP" .PP Insert one character\&. \fBParameters:\fP .RS 4 \fI__p\fP Iterator referencing position in string to insert at\&. .br \fI__c\fP The character to insert\&. .RE .PP \fBReturns:\fP .RS 4 Iterator referencing newly inserted char\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::length_error\fP\fP If new length exceeds \fCmax_size()\fP\&. .RE .PP Inserts character \fI__c\fP at position referenced by \fI__p\fP\&. If adding character causes the length to exceed max_size(), length_error is thrown\&. If \fI__p\fP is beyond end of string, out_of_range is thrown\&. The value of the string doesn't change if an error is thrown\&. .PP Definition at line 1334 of file basic_string\&.h\&. .SS "size_type \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::length () const\fC [inline]\fP, \fC [inherited]\fP" .PP Returns the number of characters in the string, not including any null-termination\&. .PP Definition at line 718 of file basic_string\&.h\&. .SS "size_type \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::max_size () const\fC [inline]\fP, \fC [inherited]\fP" .PP Returns the \fBsize()\fP of the largest possible string\&. .PP Definition at line 723 of file basic_string\&.h\&. .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::operator+= (const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str)\fC [inline]\fP, \fC [inherited]\fP" .PP Append a string to this string\&. \fBParameters:\fP .RS 4 \fI__str\fP The string to append\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP .PP Definition at line 929 of file basic_string\&.h\&. .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::replace (size_type__pos, size_type__n, const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str)\fC [inline]\fP, \fC [inherited]\fP" .PP Replace characters with value from another string\&. \fBParameters:\fP .RS 4 \fI__pos\fP Index of first character to replace\&. .br \fI__n\fP Number of characters to be replaced\&. .br \fI__str\fP String to insert\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::out_of_range\fP\fP If \fIpos\fP is beyond the end of this string\&. .br \fI\fBstd::length_error\fP\fP If new length exceeds \fCmax_size()\fP\&. .RE .PP Removes the characters in the range [\fBpos,\fPpos+__n) from this string\&. In place, the value of \fI__str\fP is inserted\&. If \fI__pos\fP is beyond end of string, out_of_range is thrown\&. If the length of the result exceeds max_size(), length_error is thrown\&. The value of the string doesn't change if an error is thrown\&. .PP Definition at line 1426 of file basic_string\&.h\&. .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::replace (size_type__pos1, size_type__n1, const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str, size_type__pos2, size_type__n2)\fC [inline]\fP, \fC [inherited]\fP" .PP Replace characters with value from another string\&. \fBParameters:\fP .RS 4 \fI__pos1\fP Index of first character to replace\&. .br \fI__n1\fP Number of characters to be replaced\&. .br \fI__str\fP String to insert\&. .br \fI__pos2\fP Index of first character of str to use\&. .br \fI__n2\fP Number of characters from str to use\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::out_of_range\fP\fP If \fI__pos1\fP > \fBsize()\fP or \fI__pos2\fP > \fB__str\&.size()\fP\&. .br \fI\fBstd::length_error\fP\fP If new length exceeds \fCmax_size()\fP\&. .RE .PP Removes the characters in the range [\fBpos1,\fPpos1 + n) from this string\&. In place, the value of \fI__str\fP is inserted\&. If \fI__pos\fP is beyond end of string, out_of_range is thrown\&. If the length of the result exceeds max_size(), length_error is thrown\&. The value of the string doesn't change if an error is thrown\&. .PP Definition at line 1448 of file basic_string\&.h\&. .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::replace (iterator__i1, iterator__i2, const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str)\fC [inline]\fP, \fC [inherited]\fP" .PP Replace range of characters with string\&. \fBParameters:\fP .RS 4 \fI__i1\fP Iterator referencing start of range to replace\&. .br \fI__i2\fP Iterator referencing end of range to replace\&. .br \fI__str\fP String value to insert\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::length_error\fP\fP If new length exceeds \fCmax_size()\fP\&. .RE .PP Removes the characters in the range [\fBi1,\fPi2)\&. In place, the value of \fI__str\fP is inserted\&. If the length of result exceeds max_size(), length_error is thrown\&. The value of the string doesn't change if an error is thrown\&. .PP Definition at line 1535 of file basic_string\&.h\&. .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::replace (iterator__i1, iterator__i2, const _CharT *__s, size_type__n)\fC [inline]\fP, \fC [inherited]\fP" .PP Replace range of characters with C substring\&. \fBParameters:\fP .RS 4 \fI__i1\fP Iterator referencing start of range to replace\&. .br \fI__i2\fP Iterator referencing end of range to replace\&. .br \fI__s\fP C string value to insert\&. .br \fI__n\fP Number of characters from s to insert\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::length_error\fP\fP If new length exceeds \fCmax_size()\fP\&. .RE .PP Removes the characters in the range [\fBi1,\fPi2)\&. In place, the first \fI__n\fP characters of \fI__s\fP are inserted\&. If the length of result exceeds max_size(), length_error is thrown\&. The value of the string doesn't change if an error is thrown\&. .PP Definition at line 1554 of file basic_string\&.h\&. .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::replace (iterator__i1, iterator__i2, const _CharT *__s)\fC [inline]\fP, \fC [inherited]\fP" .PP Replace range of characters with C string\&. \fBParameters:\fP .RS 4 \fI__i1\fP Iterator referencing start of range to replace\&. .br \fI__i2\fP Iterator referencing end of range to replace\&. .br \fI__s\fP C string value to insert\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::length_error\fP\fP If new length exceeds \fCmax_size()\fP\&. .RE .PP Removes the characters in the range [\fBi1,\fPi2)\&. In place, the characters of \fI__s\fP are inserted\&. If the length of result exceeds max_size(), length_error is thrown\&. The value of the string doesn't change if an error is thrown\&. .PP Definition at line 1575 of file basic_string\&.h\&. .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::replace (iterator__i1, iterator__i2, size_type__n, _CharT__c)\fC [inline]\fP, \fC [inherited]\fP" .PP Replace range of characters with multiple characters\&. \fBParameters:\fP .RS 4 \fI__i1\fP Iterator referencing start of range to replace\&. .br \fI__i2\fP Iterator referencing end of range to replace\&. .br \fI__n\fP Number of characters to insert\&. .br \fI__c\fP Character to insert\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::length_error\fP\fP If new length exceeds \fCmax_size()\fP\&. .RE .PP Removes the characters in the range [\fBi1,\fPi2)\&. In place, \fI__n\fP copies of \fI__c\fP are inserted\&. If the length of result exceeds max_size(), length_error is thrown\&. The value of the string doesn't change if an error is thrown\&. .PP Definition at line 1596 of file basic_string\&.h\&. .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::replace (iterator__i1, iterator__i2, _InputIterator__k1, _InputIterator__k2)\fC [inline]\fP, \fC [inherited]\fP" .PP Replace range of characters with range\&. \fBParameters:\fP .RS 4 \fI__i1\fP Iterator referencing start of range to replace\&. .br \fI__i2\fP Iterator referencing end of range to replace\&. .br \fI__k1\fP Iterator referencing start of range to insert\&. .br \fI__k2\fP Iterator referencing end of range to insert\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::length_error\fP\fP If new length exceeds \fCmax_size()\fP\&. .RE .PP Removes the characters in the range [\fBi1,\fPi2)\&. In place, characters in the range [\fBk1,\fPk2) are inserted\&. If the length of result exceeds max_size(), length_error is thrown\&. The value of the string doesn't change if an error is thrown\&. .PP Definition at line 1620 of file basic_string\&.h\&. .SS "\fBbasic_string\fP& \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::replace (iterator__i1, iterator__i2, \fBinitializer_list\fP< _CharT >__l)\fC [inline]\fP, \fC [inherited]\fP" .PP Replace range of characters with initializer_list\&. \fBParameters:\fP .RS 4 \fI__i1\fP Iterator referencing start of range to replace\&. .br \fI__i2\fP Iterator referencing end of range to replace\&. .br \fI__l\fP The initializer_list of characters to insert\&. .RE .PP \fBReturns:\fP .RS 4 Reference to this string\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::length_error\fP\fP If new length exceeds \fCmax_size()\fP\&. .RE .PP Removes the characters in the range [\fBi1,\fPi2)\&. In place, characters in the range [\fBk1,\fPk2) are inserted\&. If the length of result exceeds max_size(), length_error is thrown\&. The value of the string doesn't change if an error is thrown\&. .PP Definition at line 1689 of file basic_string\&.h\&. .SS "void \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::reserve (size_type__res_arg = \fC0\fP)\fC [inherited]\fP" .PP Attempt to preallocate enough memory for specified number of characters\&. \fBParameters:\fP .RS 4 \fI__res_arg\fP Number of characters required\&. .RE .PP \fBExceptions:\fP .RS 4 \fI\fBstd::length_error\fP\fP If \fI__res_arg\fP exceeds \fCmax_size()\fP\&. .RE .PP This function attempts to reserve enough memory for the string to hold the specified number of characters\&. If the number requested is more than max_size(), length_error is thrown\&. .PP The advantage of this function is that if optimal code is a necessity and the user can determine the string length that will be required, the user can reserve the memory in advance, and thus prevent a possible reallocation of memory and copying of string data\&. .SS "size_type \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::rfind (const \fBbasic_string\fP< _CharT, _Traits, _Allocator > &__str, size_type__pos = \fCnpos\fP) const\fC [inline]\fP, \fC [inherited]\fP" .PP Find last position of a string\&. \fBParameters:\fP .RS 4 \fI__str\fP String to locate\&. .br \fI__pos\fP Index of character to search back from (default end)\&. .RE .PP \fBReturns:\fP .RS 4 Index of start of last occurrence\&. .RE .PP Starting from \fI__pos\fP, searches backward for value of \fI__str\fP within this string\&. If found, returns the index where it begins\&. If not found, returns npos\&. .PP Definition at line 1888 of file basic_string\&.h\&. .SS "size_type \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::size () const\fC [inline]\fP, \fC [inherited]\fP" .PP Returns the number of characters in the string, not including any null-termination\&. .PP Definition at line 712 of file basic_string\&.h\&. .SS "void \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::swap (\fBbasic_string\fP< _CharT, _Traits, _Allocator > &__s)\fC [inherited]\fP" .PP Swap contents with another string\&. \fBParameters:\fP .RS 4 \fI__s\fP String to swap with\&. .RE .PP Exchanges the contents of this string with that of \fI__s\fP in constant time\&. .SH "Member Data Documentation" .PP .SS "\fB_Safe_iterator_base\fP* __gnu_debug::_Safe_sequence_base::_M_const_iterators\fC [inherited]\fP" .PP The list of constant iterators that reference this container\&. .PP Definition at line 185 of file safe_base\&.h\&. .PP Referenced by __gnu_debug::_Safe_sequence< _Sequence >::_M_transfer_from_if()\&. .SS "\fB_Safe_iterator_base\fP* __gnu_debug::_Safe_sequence_base::_M_iterators\fC [inherited]\fP" .PP The list of mutable iterators that reference this container\&. .PP Definition at line 182 of file safe_base\&.h\&. .PP Referenced by __gnu_debug::_Safe_sequence< _Sequence >::_M_transfer_from_if()\&. .SS "unsigned int __gnu_debug::_Safe_sequence_base::_M_version\fC [mutable]\fP, \fC [inherited]\fP" .PP The container version number\&. This number may never be 0\&. .PP Definition at line 188 of file safe_base\&.h\&. .PP Referenced by __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and __gnu_debug::_Safe_sequence< _Sequence >::_M_transfer_from_if()\&. .SS "const size_type \fBstd::basic_string\fP< _CharT, _Traits, _Allocator >::npos\fC [static]\fP, \fC [inherited]\fP" .PP Value returned by various member functions when they fail\&. .PP Definition at line 282 of file basic_string\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.