__gnu_debug::basic_string< _CharT, _Traits, _Allocator > Class Template Reference

Inheritance diagram for __gnu_debug::basic_string< _CharT, _Traits, _Allocator >:

std::basic_string< _CharT, _Traits, _Allocator > __gnu_debug::_Safe_sequence< _Sequence > __gnu_debug::_Safe_sequence_base List of all members.

Public Types

typedef _Traits traits_type
typedef _Traits::char_type value_type
typedef _Allocator allocator_type
typedef _Base::size_type size_type
typedef _Base::difference_type difference_type
typedef _Base::reference reference
typedef _Base::const_reference const_reference
typedef _Base::pointer pointer
typedef _Base::const_pointer const_pointer
typedef __gnu_debug::_Safe_iterator<
typename _Base::iterator,
basic_string
iterator
typedef __gnu_debug::_Safe_iterator<
typename _Base::const_iterator,
basic_string
const_iterator
typedef std::reverse_iterator<
iterator
reverse_iterator
typedef std::reverse_iterator<
const_iterator
const_reverse_iterator

Public Member Functions

 basic_string (const _Allocator &__a=_Allocator())
 Construct an empty string using allocator a.
 basic_string (const _Base &__base)
 basic_string (const basic_string &__str)
 basic_string (const basic_string &__str, size_type __pos, size_type __n=_Base::npos, const _Allocator &__a=_Allocator())
 basic_string (const _CharT *__s, size_type __n, const _Allocator &__a=_Allocator())
 basic_string (const _CharT *__s, const _Allocator &__a=_Allocator())
 Construct string as copy of a C string.
 basic_string (size_type __n, _CharT __c, const _Allocator &__a=_Allocator())
template<typename _InputIterator>
 basic_string (_InputIterator __begin, _InputIterator __end, const _Allocator &__a=_Allocator())
 Construct string as copy of a range.
 ~basic_string ()
 Destroy the string instance.
basic_stringoperator= (const basic_string &__str)
basic_stringoperator= (const _CharT *__s)
 Copy contents of s into this string.
basic_stringoperator= (_CharT __c)
 Set value to string of length 1.
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
reverse_iterator rbegin ()
const_reverse_iterator rbegin () const
reverse_iterator rend ()
const_reverse_iterator rend () const
void resize (size_type __n, _CharT __c)
void resize (size_type __n)
void clear ()
const_reference operator[] (size_type __pos) const
reference operator[] (size_type __pos)
basic_stringoperator+= (const basic_string &__str)
basic_stringoperator+= (const _CharT *__s)
 Append a C string.
basic_stringoperator+= (_CharT __c)
 Append a character.
basic_stringappend (const basic_string &__str)
basic_stringappend (const basic_string &__str, size_type __pos, size_type __n)
basic_stringappend (const _CharT *__s, size_type __n)
basic_stringappend (const _CharT *__s)
 Append a C string.
basic_stringappend (size_type __n, _CharT __c)
template<typename _InputIterator>
basic_stringappend (_InputIterator __first, _InputIterator __last)
 Append a range of characters.
void push_back (_CharT __c)
 Append a single character.
basic_stringassign (const basic_string &__x)
basic_stringassign (const basic_string &__str, size_type __pos, size_type __n)
basic_stringassign (const _CharT *__s, size_type __n)
basic_stringassign (const _CharT *__s)
 Set value to contents of a C string.
basic_stringassign (size_type __n, _CharT __c)
template<typename _InputIterator>
basic_stringassign (_InputIterator __first, _InputIterator __last)
 Set value to a range of characters.
basic_stringinsert (size_type __pos1, const basic_string &__str)
basic_stringinsert (size_type __pos1, const basic_string &__str, size_type __pos2, size_type __n)
basic_stringinsert (size_type __pos, const _CharT *__s, size_type __n)
basic_stringinsert (size_type __pos, const _CharT *__s)
basic_stringinsert (size_type __pos, size_type __n, _CharT __c)
iterator insert (iterator __p, _CharT __c)
void insert (iterator __p, size_type __n, _CharT __c)
template<typename _InputIterator>
void insert (iterator __p, _InputIterator __first, _InputIterator __last)
basic_stringerase (size_type __pos=0, size_type __n=_Base::npos)
iterator erase (iterator __position)
iterator erase (iterator __first, iterator __last)
basic_stringreplace (size_type __pos1, size_type __n1, const basic_string &__str)
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 __n1, const _CharT *__s, size_type __n2)
basic_stringreplace (size_type __pos, size_type __n1, const _CharT *__s)
basic_stringreplace (size_type __pos, size_type __n1, size_type __n2, _CharT __c)
basic_stringreplace (iterator __i1, iterator __i2, const basic_string &__str)
basic_stringreplace (iterator __i1, iterator __i2, const _CharT *__s, size_type __n)
basic_stringreplace (iterator __i1, iterator __i2, const _CharT *__s)
basic_stringreplace (iterator __i1, iterator __i2, size_type __n, _CharT __c)
template<typename _InputIterator>
basic_stringreplace (iterator __i1, iterator __i2, _InputIterator __j1, _InputIterator __j2)
size_type copy (_CharT *__s, size_type __n, size_type __pos=0) const
void swap (basic_string< _CharT, _Traits, _Allocator > &__x)
const _CharT * c_str () const
 Return const pointer to null-terminated contents.
const _CharT * data () const
 Return const pointer to contents.
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 (const _CharT *__s, size_type __pos=0) const
size_type find (_CharT __c, size_type __pos=0) const
size_type rfind (const basic_string &__str, size_type __pos=_Base::npos) const
size_type rfind (const _CharT *__s, size_type __pos, size_type __n) const
size_type rfind (const _CharT *__s, size_type __pos=_Base::npos) const
size_type rfind (_CharT __c, size_type __pos=_Base::npos) const
size_type find_first_of (const basic_string &__str, 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 _CharT *__s, size_type __pos=0) const
size_type find_first_of (_CharT __c, size_type __pos=0) const
size_type find_last_of (const basic_string &__str, size_type __pos=_Base::npos) const
size_type find_last_of (const _CharT *__s, size_type __pos, size_type __n) const
size_type find_last_of (const _CharT *__s, size_type __pos=_Base::npos) const
size_type find_last_of (_CharT __c, size_type __pos=_Base::npos) const
size_type find_first_not_of (const basic_string &__str, 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 _CharT *__s, size_type __pos=0) const
size_type find_first_not_of (_CharT __c, size_type __pos=0) const
size_type find_last_not_of (const basic_string &__str, size_type __pos=_Base::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 _CharT *__s, size_type __pos=_Base::npos) const
size_type find_last_not_of (_CharT __c, size_type __pos=_Base::npos) const
basic_string substr (size_type __pos=0, size_type __n=_Base::npos) const
int compare (const basic_string &__str) const
int compare (size_type __pos1, size_type __n1, const basic_string &__str) const
int compare (size_type __pos1, size_type __n1, const basic_string &__str, size_type __pos2, size_type __n2) const
int compare (const _CharT *__s) const
 Compare to a C string.
int compare (size_type __pos1, size_type __n1, const _CharT *__s) const
int compare (size_type __pos1, size_type __n1, const _CharT *__s, size_type __n2) const
_Base_M_base ()
const _Base_M_base () const

Private Types

typedef std::basic_string<
_CharT, _Traits, _Allocator > 
_Base
typedef __gnu_debug::_Safe_sequence<
basic_string
_Safe_base

Detailed Description

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
class __gnu_debug::basic_string< _CharT, _Traits, _Allocator >

Definition at line 42 of file debug/string.


Member Typedef Documentation

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
typedef std::basic_string<_CharT, _Traits, _Allocator> __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_Base [private]

Definition at line 47 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
typedef __gnu_debug::_Safe_sequence<basic_string> __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_Safe_base [private]

Definition at line 48 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
typedef _Allocator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::allocator_type

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 54 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
typedef __gnu_debug::_Safe_iterator<typename _Base::const_iterator, basic_string> __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::const_iterator

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 65 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
typedef _Base::const_pointer __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::const_pointer

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 60 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
typedef _Base::const_reference __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::const_reference

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 58 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
typedef std::reverse_iterator<const_iterator> __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::const_reverse_iterator

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 68 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
typedef _Base::difference_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::difference_type

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 56 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
typedef __gnu_debug::_Safe_iterator<typename _Base::iterator, basic_string> __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::iterator

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 63 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
typedef _Base::pointer __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::pointer

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 59 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
typedef _Base::reference __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::reference

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 57 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
typedef std::reverse_iterator<iterator> __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::reverse_iterator

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 67 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
typedef _Base::size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::size_type

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 55 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
typedef _Traits __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::traits_type

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 52 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
typedef _Traits::char_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::value_type

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 53 of file debug/string.


Constructor & Destructor Documentation

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string ( const _Allocator &  __a = _Allocator()  )  [inline, explicit]

Construct an empty string using allocator a.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 73 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string ( const _Base __base  )  [inline]

Definition at line 78 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string ( const basic_string< _CharT, _Traits, _Allocator > &  __str  )  [inline]

Definition at line 82 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string ( const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos,
size_type  __n = _Base::npos,
const _Allocator &  __a = _Allocator() 
) [inline]

Definition at line 88 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string ( const _CharT *  __s,
size_type  __n,
const _Allocator &  __a = _Allocator() 
) [inline]

Definition at line 94 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string ( const _CharT *  __s,
const _Allocator &  __a = _Allocator() 
) [inline]

Construct string as copy of a C string.

Parameters:
s Source C string.
a Allocator to use (default is default allocator).

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 99 of file debug/string.

References __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::assign().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string ( size_type  __n,
_CharT  __c,
const _Allocator &  __a = _Allocator() 
) [inline]

Definition at line 103 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
template<typename _InputIterator>
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string ( _InputIterator  __begin,
_InputIterator  __end,
const _Allocator &  __a = _Allocator() 
) [inline]

Construct string as copy of a range.

Parameters:
beg Start of range.
end End of range.
a Allocator to use (default is default allocator).

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 109 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::~basic_string (  )  [inline]

Destroy the string instance.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 114 of file debug/string.


Member Function Documentation

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
const _Base& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_M_base (  )  const [inline]

Definition at line 779 of file debug/string.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
_Base& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_M_base (  )  [inline]

Definition at line 776 of file debug/string.

Referenced by __gnu_debug::getline(), __gnu_debug::operator!=(), __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator+=(), __gnu_debug::operator<(), __gnu_debug::operator<<(), __gnu_debug::operator<=(), __gnu_debug::operator==(), __gnu_debug::operator>(), __gnu_debug::operator>=(), __gnu_debug::operator>>(), and __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator[]().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
template<typename _InputIterator>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::append ( _InputIterator  __first,
_InputIterator  __last 
) [inline]

Append a range of characters.

Parameters:
first Iterator referencing the first character to append.
last Iterator marking the end of the range.
Returns:
Reference to this string.
Appends characters in the range [first,last) to this string.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 302 of file debug/string.

References __glibcxx_check_valid_range, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::append().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::append ( size_type  __n,
_CharT  __c 
) [inline]

Definition at line 293 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::append().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::append ( const _CharT *  __s  )  [inline]

Append a C string.

Parameters:
s The C string to append.
Returns:
Reference to this string.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 284 of file debug/string.

References __glibcxx_check_string, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::append().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::append ( const _CharT *  __s,
size_type  __n 
) [inline]

Definition at line 275 of file debug/string.

References __glibcxx_check_string_len, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::append().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::append ( const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos,
size_type  __n 
) [inline]

Definition at line 267 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::append().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::append ( const basic_string< _CharT, _Traits, _Allocator > &  __str  )  [inline]

Definition at line 259 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::append().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
template<typename _InputIterator>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::assign ( _InputIterator  __first,
_InputIterator  __last 
) [inline]

Set value to a range of characters.

Parameters:
first Iterator referencing the first character to append.
last Iterator marking the end of the range.
Returns:
Reference to this string.
Sets value of string to characters in the range [first,last).

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 363 of file debug/string.

References __glibcxx_check_valid_range, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::assign().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::assign ( size_type  __n,
_CharT  __c 
) [inline]

Definition at line 354 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::assign().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::assign ( const _CharT *  __s  )  [inline]

Set value to contents of a C string.

Parameters:
s The C string to use.
Returns:
Reference to this string.
This function sets the value of this string to the value of s. The data is copied, so there is no dependence on s once the function returns.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 345 of file debug/string.

References __glibcxx_check_string, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::assign().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::assign ( const _CharT *  __s,
size_type  __n 
) [inline]

Definition at line 336 of file debug/string.

References __glibcxx_check_string_len, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::assign().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::assign ( const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos,
size_type  __n 
) [inline]

Definition at line 328 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::assign().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::assign ( const basic_string< _CharT, _Traits, _Allocator > &  __x  )  [inline]

Definition at line 320 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::assign().

Referenced by __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
const_iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::begin (  )  const [inline]

Returns a read-only (constant) iterator that points to the first character in the string.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 147 of file debug/string.

References std::basic_string< _CharT, _Traits, _Allocator >::begin().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::begin (  )  [inline]

Returns a read/write iterator that points to the first character in the string. Unshares the string.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 143 of file debug/string.

References std::basic_string< _CharT, _Traits, _Allocator >::begin().

Referenced by __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rend().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
const _CharT* __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::c_str (  )  const [inline]

Return const pointer to null-terminated contents.

This is a handle to internal data. Do not modify or dire things may happen.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 581 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::c_str().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
void __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::clear (  )  [inline]

Erases the string, making it empty.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 194 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::clear().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
int __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::compare ( size_type  __pos1,
size_type  __n1,
const _CharT *  __s,
size_type  __n2 
) const [inline]

Definition at line 768 of file debug/string.

References __glibcxx_check_string_len, and std::basic_string< _CharT, _Traits, _Allocator >::compare().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
int __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::compare ( size_type  __pos1,
size_type  __n1,
const _CharT *  __s 
) const [inline]

Definition at line 759 of file debug/string.

References __glibcxx_check_string, and std::basic_string< _CharT, _Traits, _Allocator >::compare().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
int __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::compare ( const _CharT *  __s  )  const [inline]

Compare to a C string.

Parameters:
s C string to compare against.
Returns:
Integer < 0, 0, or > 0.
Returns an integer < 0 if this string is ordered before s, 0 if their values are equivalent, or > 0 if this string is ordered after s. Determines the effective length rlen of the strings to compare as the smallest of size() and the length of a string constructed from s. The function then compares the two strings by calling traits::compare(data(),s,rlen). If the result of the comparison is nonzero returns it, otherwise the shorter one is ordered first.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 750 of file debug/string.

References __glibcxx_check_string, and std::basic_string< _CharT, _Traits, _Allocator >::compare().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
int __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::compare ( size_type  __pos1,
size_type  __n1,
const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos2,
size_type  __n2 
) const [inline]

Definition at line 745 of file debug/string.

References std::basic_string< _CharT, _Traits, _Allocator >::compare().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
int __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::compare ( size_type  __pos1,
size_type  __n1,
const basic_string< _CharT, _Traits, _Allocator > &  __str 
) const [inline]

Definition at line 740 of file debug/string.

References std::basic_string< _CharT, _Traits, _Allocator >::compare().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
int __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::compare ( const basic_string< _CharT, _Traits, _Allocator > &  __str  )  const [inline]

Definition at line 736 of file debug/string.

References std::basic_string< _CharT, _Traits, _Allocator >::compare().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::copy ( _CharT *  __s,
size_type  __n,
size_type  __pos = 0 
) const [inline]

Definition at line 564 of file debug/string.

References __glibcxx_check_string_len, and std::copy().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
const _CharT* __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::data (  )  const [inline]

Return const pointer to contents.

This is a handle to internal data. Do not modify or dire things may happen.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 589 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::data().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
const_iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::end (  )  const [inline]

Returns a read-only (constant) iterator that points one past the last character in the string.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 155 of file debug/string.

References std::basic_string< _CharT, _Traits, _Allocator >::end().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::end (  )  [inline]

Returns a read/write iterator that points one past the last character in the string. Unshares the string.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 151 of file debug/string.

References std::basic_string< _CharT, _Traits, _Allocator >::end().

Referenced by __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rbegin().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::erase ( iterator  __first,
iterator  __last 
) [inline]

Definition at line 458 of file debug/string.

References __glibcxx_check_erase_range, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::basic_string< _CharT, _Traits, _Allocator >::erase().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::erase ( iterator  __position  )  [inline]

Definition at line 449 of file debug/string.

References __glibcxx_check_erase, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::basic_string< _CharT, _Traits, _Allocator >::erase().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::erase ( size_type  __pos = 0,
size_type  __n = _Base::npos 
) [inline]

Definition at line 441 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::erase().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find ( _CharT  __c,
size_type  __pos = 0 
) const [inline]

Definition at line 617 of file debug/string.

References std::find().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find ( const _CharT *  __s,
size_type  __pos = 0 
) const [inline]

Definition at line 610 of file debug/string.

References __glibcxx_check_string, and std::find().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find ( const _CharT *  __s,
size_type  __pos,
size_type  __n 
) const [inline]

Definition at line 603 of file debug/string.

References __glibcxx_check_string, and std::find().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find ( const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos = 0 
) const [inline]

Definition at line 599 of file debug/string.

References std::find().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of ( _CharT  __c,
size_type  __pos = 0 
) const [inline]

Definition at line 705 of file debug/string.

References std::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of ( const _CharT *  __s,
size_type  __pos = 0 
) const [inline]

Definition at line 698 of file debug/string.

References __glibcxx_check_string, and std::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of ( const _CharT *  __s,
size_type  __pos,
size_type  __n 
) const [inline]

Definition at line 691 of file debug/string.

References __glibcxx_check_string_len, and std::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of ( const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos = 0 
) const [inline]

Definition at line 687 of file debug/string.

References std::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_first_of ( _CharT  __c,
size_type  __pos = 0 
) const [inline]

Definition at line 661 of file debug/string.

References std::find_first_of().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_first_of ( const _CharT *  __s,
size_type  __pos = 0 
) const [inline]

Definition at line 654 of file debug/string.

References __glibcxx_check_string, and std::find_first_of().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_first_of ( const _CharT *  __s,
size_type  __pos,
size_type  __n 
) const [inline]

Definition at line 647 of file debug/string.

References __glibcxx_check_string, and std::find_first_of().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_first_of ( const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos = 0 
) const [inline]

Definition at line 643 of file debug/string.

References std::find_first_of().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of ( _CharT  __c,
size_type  __pos = _Base::npos 
) const [inline]

Definition at line 728 of file debug/string.

References std::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of ( const _CharT *  __s,
size_type  __pos = _Base::npos 
) const [inline]

Definition at line 721 of file debug/string.

References __glibcxx_check_string, and std::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of ( const _CharT *  __s,
size_type  __pos,
size_type  __n 
) const [inline]

Definition at line 714 of file debug/string.

References __glibcxx_check_string, and std::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of ( const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos = _Base::npos 
) const [inline]

Definition at line 709 of file debug/string.

References std::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_last_of ( _CharT  __c,
size_type  __pos = _Base::npos 
) const [inline]

Definition at line 683 of file debug/string.

References std::basic_string< _CharT, _Traits, _Allocator >::find_last_of().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_last_of ( const _CharT *  __s,
size_type  __pos = _Base::npos 
) const [inline]

Definition at line 676 of file debug/string.

References __glibcxx_check_string, and std::basic_string< _CharT, _Traits, _Allocator >::find_last_of().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_last_of ( const _CharT *  __s,
size_type  __pos,
size_type  __n 
) const [inline]

Definition at line 669 of file debug/string.

References __glibcxx_check_string, and std::basic_string< _CharT, _Traits, _Allocator >::find_last_of().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_last_of ( const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos = _Base::npos 
) const [inline]

Definition at line 665 of file debug/string.

References std::basic_string< _CharT, _Traits, _Allocator >::find_last_of().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
template<typename _InputIterator>
void __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::insert ( iterator  __p,
_InputIterator  __first,
_InputIterator  __last 
) [inline]

Definition at line 433 of file debug/string.

References __glibcxx_check_insert_range, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::basic_string< _CharT, _Traits, _Allocator >::insert().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
void __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::insert ( iterator  __p,
size_type  __n,
_CharT  __c 
) [inline]

Definition at line 424 of file debug/string.

References __glibcxx_check_insert, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::basic_string< _CharT, _Traits, _Allocator >::insert().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::insert ( iterator  __p,
_CharT  __c 
) [inline]

Definition at line 415 of file debug/string.

References __glibcxx_check_insert, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::basic_string< _CharT, _Traits, _Allocator >::insert().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::insert ( size_type  __pos,
size_type  __n,
_CharT  __c 
) [inline]

Definition at line 407 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::insert().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::insert ( size_type  __pos,
const _CharT *  __s 
) [inline]

Definition at line 398 of file debug/string.

References __glibcxx_check_string, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::insert().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::insert ( size_type  __pos,
const _CharT *  __s,
size_type  __n 
) [inline]

Definition at line 389 of file debug/string.

References __glibcxx_check_string, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::insert().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::insert ( size_type  __pos1,
const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos2,
size_type  __n 
) [inline]

Definition at line 380 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::insert().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::insert ( size_type  __pos1,
const basic_string< _CharT, _Traits, _Allocator > &  __str 
) [inline]

Definition at line 372 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::insert().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator+= ( _CharT  __c  )  [inline]

Append a character.

Parameters:
c The character to append.
Returns:
Reference to this string.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 251 of file debug/string.

References __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_M_base(), and __gnu_debug::_Safe_sequence_base::_M_invalidate_all().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator+= ( const _CharT *  __s  )  [inline]

Append a C string.

Parameters:
s The C string to append.
Returns:
Reference to this string.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 242 of file debug/string.

References __glibcxx_check_string, __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_M_base(), and __gnu_debug::_Safe_sequence_base::_M_invalidate_all().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator+= ( const basic_string< _CharT, _Traits, _Allocator > &  __str  )  [inline]

Definition at line 234 of file debug/string.

References __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_M_base(), and __gnu_debug::_Safe_sequence_base::_M_invalidate_all().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator= ( _CharT  __c  )  [inline]

Set value to string of length 1.

Parameters:
c Source character.
Assigning to a character makes this string length 1 and (*this)[0] == c.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 134 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator= ( const _CharT *  __s  )  [inline]

Copy contents of s into this string.

Parameters:
s Source null-terminated string.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 125 of file debug/string.

References __glibcxx_check_string, and __gnu_debug::_Safe_sequence_base::_M_invalidate_all().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator= ( const basic_string< _CharT, _Traits, _Allocator > &  __str  )  [inline]

Definition at line 117 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
reference __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator[] ( size_type  __pos  )  [inline]

Definition at line 215 of file debug/string.

References __glibcxx_check_subscript, __gnu_debug::__msg_subscript_oob, _GLIBCXX_DEBUG_VERIFY, __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_M_base(), and std::basic_string< _CharT, _Traits, _Allocator >::size().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
const_reference __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator[] ( size_type  __pos  )  const [inline]

Definition at line 204 of file debug/string.

References __gnu_debug::__msg_subscript_oob, _GLIBCXX_DEBUG_VERIFY, __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_M_base(), and std::basic_string< _CharT, _Traits, _Allocator >::size().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
void __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::push_back ( _CharT  __c  )  [inline]

Append a single character.

Parameters:
c Character to append.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 313 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::push_back().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
const_reverse_iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rbegin (  )  const [inline]

Returns a read-only (constant) reverse iterator that points to the last character in the string. Iteration is done in reverse element order.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 163 of file debug/string.

References __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::end().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
reverse_iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rbegin (  )  [inline]

Returns a read/write reverse iterator that points to the last character in the string. Iteration is done in reverse element order. Unshares the string.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 159 of file debug/string.

References __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::end().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
const_reverse_iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rend (  )  const [inline]

Returns a read-only (constant) reverse iterator that points to one before the first character in the string. Iteration is done in reverse element order.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 171 of file debug/string.

References __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::begin().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
reverse_iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rend (  )  [inline]

Returns a read/write reverse iterator that points to one before the first character in the string. Iteration is done in reverse element order. Unshares the string.

Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.

Definition at line 167 of file debug/string.

References __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::begin().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
template<typename _InputIterator>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace ( iterator  __i1,
iterator  __i2,
_InputIterator  __j1,
_InputIterator  __j2 
) [inline]

Definition at line 553 of file debug/string.

References __glibcxx_check_erase_range, __glibcxx_check_valid_range, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::replace().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace ( iterator  __i1,
iterator  __i2,
size_type  __n,
_CharT  __c 
) [inline]

Definition at line 543 of file debug/string.

References __glibcxx_check_erase_range, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::replace().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace ( iterator  __i1,
iterator  __i2,
const _CharT *  __s 
) [inline]

Definition at line 533 of file debug/string.

References __glibcxx_check_erase_range, __glibcxx_check_string, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::replace().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace ( iterator  __i1,
iterator  __i2,
const _CharT *  __s,
size_type  __n 
) [inline]

Definition at line 523 of file debug/string.

References __glibcxx_check_erase_range, __glibcxx_check_string_len, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::replace().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace ( iterator  __i1,
iterator  __i2,
const basic_string< _CharT, _Traits, _Allocator > &  __str 
) [inline]

Definition at line 514 of file debug/string.

References __glibcxx_check_erase_range, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::replace().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace ( size_type  __pos,
size_type  __n1,
size_type  __n2,
_CharT  __c 
) [inline]

Definition at line 506 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::replace().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace ( size_type  __pos,
size_type  __n1,
const _CharT *  __s 
) [inline]

Definition at line 497 of file debug/string.

References __glibcxx_check_string, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::replace().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace ( size_type  __pos,
size_type  __n1,
const _CharT *  __s,
size_type  __n2 
) [inline]

Definition at line 487 of file debug/string.

References __glibcxx_check_string_len, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::replace().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace ( size_type  __pos1,
size_type  __n1,
const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos2,
size_type  __n2 
) [inline]

Definition at line 478 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::replace().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace ( size_type  __pos1,
size_type  __n1,
const basic_string< _CharT, _Traits, _Allocator > &  __str 
) [inline]

Definition at line 470 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::replace().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
void __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::resize ( size_type  __n  )  [inline]

Definition at line 187 of file debug/string.

References __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::resize().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
void __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::resize ( size_type  __n,
_CharT  __c 
) [inline]

Definition at line 180 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::resize().

Referenced by __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::resize().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rfind ( _CharT  __c,
size_type  __pos = _Base::npos 
) const [inline]

Definition at line 639 of file debug/string.

References std::basic_string< _CharT, _Traits, _Allocator >::rfind().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rfind ( const _CharT *  __s,
size_type  __pos = _Base::npos 
) const [inline]

Definition at line 632 of file debug/string.

References __glibcxx_check_string, and std::basic_string< _CharT, _Traits, _Allocator >::rfind().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rfind ( const _CharT *  __s,
size_type  __pos,
size_type  __n 
) const [inline]

Definition at line 625 of file debug/string.

References __glibcxx_check_string_len, and std::basic_string< _CharT, _Traits, _Allocator >::rfind().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rfind ( const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos = _Base::npos 
) const [inline]

Definition at line 621 of file debug/string.

References std::basic_string< _CharT, _Traits, _Allocator >::rfind().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
basic_string __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::substr ( size_type  __pos = 0,
size_type  __n = _Base::npos 
) const [inline]

Definition at line 732 of file debug/string.

References std::basic_string< _CharT, _Traits, _Allocator >::basic_string(), and std::basic_string< _CharT, _Traits, _Allocator >::substr().

template<typename _CharT, typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>>
void __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::swap ( basic_string< _CharT, _Traits, _Allocator > &  __x  )  [inline]

Definition at line 571 of file debug/string.

References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_sequence_base::_M_swap(), and std::swap().

Referenced by __gnu_debug::swap().


The documentation for this class was generated from the following file:
Generated on Tue Feb 2 16:58:15 2010 for GNU C++ STL by  doxygen 1.4.7