STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Enumerations | Functions
__gnu_debug Namespace Reference

GNU debug classes for public use. More...

Classes

class  _Safe_iterator
 Safe iterator wrapper. More...
 
class  _Safe_local_iterator
 Safe iterator wrapper. More...
 
class  _Safe_sequence
 Base class for constructing a safe sequence type that tracks iterators that reference it. More...
 
class  _Error_formatter
 
struct  _BeforeBeginHelper< std::__debug::forward_list< _Tp, _Alloc > >
 
struct  __is_safe_random_iterator
 
struct  __is_safe_random_iterator< _Safe_iterator< _Iterator, _Sequence > >
 
struct  _Siter_base
 
class  _Safe_iterator_base
 Basic functionality for a safe iterator. More...
 
class  _Safe_sequence_base
 Base class that supports tracking of iterators that reference a sequence. More...
 
struct  _BeforeBeginHelper
 
class  _Not_equal_to
 
class  _Equal_to
 
class  _After_nth_from
 
class  _Safe_local_iterator_base
 Basic functionality for a safe iterator. More...
 
class  _Safe_unordered_container_base
 Base class that supports tracking of local iterators that reference an unordered container. More...
 
class  _Safe_unordered_container
 Base class for constructing a safe unordered container type that tracks iterators that reference it. More...
 
class  basic_string
 Class std::basic_string with safety/checking/debug instrumentation. More...
 

Typedefs

typedef basic_string< char > string
 

Enumerations

enum  _Debug_msg_id {
  __msg_valid_range, __msg_insert_singular, __msg_insert_different, __msg_erase_bad,
  __msg_erase_different, __msg_subscript_oob, __msg_empty, __msg_unpartitioned,
  __msg_unpartitioned_pred, __msg_unsorted, __msg_unsorted_pred, __msg_not_heap,
  __msg_not_heap_pred, __msg_bad_bitset_write, __msg_bad_bitset_read, __msg_bad_bitset_flip,
  __msg_self_splice, __msg_splice_alloc, __msg_splice_bad, __msg_splice_other,
  __msg_splice_overlap, __msg_init_singular, __msg_init_copy_singular, __msg_init_const_singular,
  __msg_copy_singular, __msg_bad_deref, __msg_bad_inc, __msg_bad_dec,
  __msg_iter_subscript_oob, __msg_advance_oob, __msg_retreat_oob, __msg_iter_compare_bad,
  __msg_compare_different, __msg_iter_order_bad, __msg_order_different, __msg_distance_bad,
  __msg_distance_different, __msg_deref_istream, __msg_inc_istream, __msg_output_ostream,
  __msg_deref_istreambuf, __msg_inc_istreambuf, __msg_insert_after_end, __msg_erase_after_bad,
  __msg_valid_range2, __msg_local_iter_compare_bad, __msg_non_empty_range, __msg_self_move_assign,
  __msg_bucket_index_oob, __msg_valid_load_factor, __msg_equal_allocs
}
 
enum  _Distance_precision { __dp_equality, __dp_sign, __dp_exact }
 

Functions

template<typename _Iterator >
bool __check_singular (_Iterator &)
 
bool __check_singular_aux (const void *)
 
template<typename _Tp >
bool __check_singular (const _Tp *__ptr)
 
template<typename _Iterator , typename _Sequence >
bool __check_singular (const _Safe_iterator< _Iterator, _Sequence > &__x)
 
template<typename _Iterator >
bool __check_dereferenceable (_Iterator &)
 
template<typename _Tp >
bool __check_dereferenceable (const _Tp *__ptr)
 
template<typename _Iterator , typename _Sequence >
bool __check_dereferenceable (const _Safe_iterator< _Iterator, _Sequence > &__x)
 
template<typename _RandomAccessIterator >
bool __valid_range_aux2 (const _RandomAccessIterator &__first, const _RandomAccessIterator &__last, std::random_access_iterator_tag)
 
template<typename _InputIterator >
bool __valid_range_aux2 (const _InputIterator &, const _InputIterator &, std::input_iterator_tag)
 
template<typename _Integral >
bool __valid_range_aux (const _Integral &, const _Integral &, std::__true_type)
 
template<typename _InputIterator >
bool __valid_range_aux (const _InputIterator &__first, const _InputIterator &__last, std::__false_type)
 
template<typename _InputIterator >
bool __valid_range (const _InputIterator &__first, const _InputIterator &__last)
 
template<typename _Iterator , typename _Sequence >
bool __valid_range (const _Safe_iterator< _Iterator, _Sequence > &__first, const _Safe_iterator< _Iterator, _Sequence > &__last)
 
template<typename _Iterator , typename _Sequence >
bool __valid_range (const _Safe_local_iterator< _Iterator, _Sequence > &__first, const _Safe_local_iterator< _Iterator, _Sequence > &__last)
 
template<typename _InputIterator >
_InputIterator __check_valid_range (const _InputIterator &__first, const _InputIterator &__last __attribute__((__unused__)))
 
template<typename _CharT , typename _Integer >
const _CharT * __check_string (const _CharT *__s, const _Integer &__n __attribute__((__unused__)))
 
template<typename _CharT >
const _CharT * __check_string (const _CharT *__s)
 
template<typename _InputIterator >
bool __check_sorted_aux (const _InputIterator &, const _InputIterator &, std::input_iterator_tag)
 
template<typename _ForwardIterator >
bool __check_sorted_aux (_ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag)
 
template<typename _Iterator , typename _Sequence >
bool __check_sorted_aux (const _Safe_iterator< _Iterator, _Sequence > &__first, const _Safe_iterator< _Iterator, _Sequence > &__last, std::random_access_iterator_tag __tag)
 
template<typename _InputIterator , typename _Predicate >
bool __check_sorted_aux (const _InputIterator &, const _InputIterator &, _Predicate, std::input_iterator_tag)
 
template<typename _ForwardIterator , typename _Predicate >
bool __check_sorted_aux (_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred, std::forward_iterator_tag)
 
template<typename _Iterator , typename _Sequence , typename _Predicate >
bool __check_sorted_aux (const _Safe_iterator< _Iterator, _Sequence > &__first, const _Safe_iterator< _Iterator, _Sequence > &__last, _Predicate __pred, std::random_access_iterator_tag __tag)
 
template<typename _InputIterator >
bool __check_sorted (const _InputIterator &__first, const _InputIterator &__last)
 
template<typename _InputIterator , typename _Predicate >
bool __check_sorted (const _InputIterator &__first, const _InputIterator &__last, _Predicate __pred)
 
template<typename _InputIterator >
bool __check_sorted_set_aux (const _InputIterator &__first, const _InputIterator &__last, std::__true_type)
 
template<typename _InputIterator >
bool __check_sorted_set_aux (const _InputIterator &, const _InputIterator &, std::__false_type)
 
template<typename _InputIterator , typename _Predicate >
bool __check_sorted_set_aux (const _InputIterator &__first, const _InputIterator &__last, _Predicate __pred, std::__true_type)
 
template<typename _InputIterator , typename _Predicate >
bool __check_sorted_set_aux (const _InputIterator &, const _InputIterator &, _Predicate, std::__false_type)
 
template<typename _InputIterator1 , typename _InputIterator2 >
bool __check_sorted_set (const _InputIterator1 &__first, const _InputIterator1 &__last, const _InputIterator2 &)
 
template<typename _InputIterator1 , typename _InputIterator2 , typename _Predicate >
bool __check_sorted_set (const _InputIterator1 &__first, const _InputIterator1 &__last, const _InputIterator2 &, _Predicate __pred)
 
template<typename _ForwardIterator , typename _Tp >
bool __check_partitioned_lower (_ForwardIterator __first, _ForwardIterator __last, const _Tp &__value)
 
template<typename _ForwardIterator , typename _Tp >
bool __check_partitioned_upper (_ForwardIterator __first, _ForwardIterator __last, const _Tp &__value)
 
template<typename _ForwardIterator , typename _Tp , typename _Pred >
bool __check_partitioned_lower (_ForwardIterator __first, _ForwardIterator __last, const _Tp &__value, _Pred __pred)
 
template<typename _ForwardIterator , typename _Tp , typename _Pred >
bool __check_partitioned_upper (_ForwardIterator __first, _ForwardIterator __last, const _Tp &__value, _Pred __pred)
 
template<typename _Iterator >
_Siter_base< _Iterator >
::iterator_type 
__base (_Iterator __it)
 
bool __check_singular_aux (const _Safe_iterator_base *__x)
 
template<typename _Iterator1 , typename _Iterator2 >
std::pair< typename
std::iterator_traits
< _Iterator1 >
::difference_type,
_Distance_precision
__get_distance (const _Iterator1 &__lhs, const _Iterator2 &__rhs, std::random_access_iterator_tag)
 
template<typename _Iterator1 , typename _Iterator2 >
std::pair< typename
std::iterator_traits
< _Iterator1 >
::difference_type,
_Distance_precision
__get_distance (const _Iterator1 &__lhs, const _Iterator2 &__rhs, std::forward_iterator_tag)
 
template<typename _Iterator1 , typename _Iterator2 >
std::pair< typename
std::iterator_traits
< _Iterator1 >
::difference_type,
_Distance_precision
__get_distance (const _Iterator1 &__lhs, const _Iterator2 &__rhs)
 
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
bool operator== (const _Safe_iterator< _IteratorL, _Sequence > &__lhs, const _Safe_iterator< _IteratorR, _Sequence > &__rhs)
 
template<typename _Iterator , typename _Sequence >
bool operator== (const _Safe_iterator< _Iterator, _Sequence > &__lhs, const _Safe_iterator< _Iterator, _Sequence > &__rhs)
 
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
bool operator!= (const _Safe_iterator< _IteratorL, _Sequence > &__lhs, const _Safe_iterator< _IteratorR, _Sequence > &__rhs)
 
template<typename _Iterator , typename _Sequence >
bool operator!= (const _Safe_iterator< _Iterator, _Sequence > &__lhs, const _Safe_iterator< _Iterator, _Sequence > &__rhs)
 
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
bool operator< (const _Safe_iterator< _IteratorL, _Sequence > &__lhs, const _Safe_iterator< _IteratorR, _Sequence > &__rhs)
 
template<typename _Iterator , typename _Sequence >
bool operator< (const _Safe_iterator< _Iterator, _Sequence > &__lhs, const _Safe_iterator< _Iterator, _Sequence > &__rhs)
 
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
bool operator<= (const _Safe_iterator< _IteratorL, _Sequence > &__lhs, const _Safe_iterator< _IteratorR, _Sequence > &__rhs)
 
template<typename _Iterator , typename _Sequence >
bool operator<= (const _Safe_iterator< _Iterator, _Sequence > &__lhs, const _Safe_iterator< _Iterator, _Sequence > &__rhs)
 
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
bool operator> (const _Safe_iterator< _IteratorL, _Sequence > &__lhs, const _Safe_iterator< _IteratorR, _Sequence > &__rhs)
 
template<typename _Iterator , typename _Sequence >
bool operator> (const _Safe_iterator< _Iterator, _Sequence > &__lhs, const _Safe_iterator< _Iterator, _Sequence > &__rhs)
 
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
bool operator>= (const _Safe_iterator< _IteratorL, _Sequence > &__lhs, const _Safe_iterator< _IteratorR, _Sequence > &__rhs)
 
template<typename _Iterator , typename _Sequence >
bool operator>= (const _Safe_iterator< _Iterator, _Sequence > &__lhs, const _Safe_iterator< _Iterator, _Sequence > &__rhs)
 
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
_Safe_iterator< _IteratorL,
_Sequence >::difference_type 
operator- (const _Safe_iterator< _IteratorL, _Sequence > &__lhs, const _Safe_iterator< _IteratorR, _Sequence > &__rhs)
 
template<typename _Iterator , typename _Sequence >
_Safe_iterator< _Iterator,
_Sequence >::difference_type 
operator- (const _Safe_iterator< _Iterator, _Sequence > &__lhs, const _Safe_iterator< _Iterator, _Sequence > &__rhs)
 
template<typename _Iterator , typename _Sequence >
_Safe_iterator< _Iterator,
_Sequence > 
operator+ (typename _Safe_iterator< _Iterator, _Sequence >::difference_type __n, const _Safe_iterator< _Iterator, _Sequence > &__i)
 
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
bool operator== (const _Safe_local_iterator< _IteratorL, _Sequence > &__lhs, const _Safe_local_iterator< _IteratorR, _Sequence > &__rhs)
 
template<typename _Iterator , typename _Sequence >
bool operator== (const _Safe_local_iterator< _Iterator, _Sequence > &__lhs, const _Safe_local_iterator< _Iterator, _Sequence > &__rhs)
 
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
bool operator!= (const _Safe_local_iterator< _IteratorL, _Sequence > &__lhs, const _Safe_local_iterator< _IteratorR, _Sequence > &__rhs)
 
template<typename _Iterator , typename _Sequence >
bool operator!= (const _Safe_local_iterator< _Iterator, _Sequence > &__lhs, const _Safe_local_iterator< _Iterator, _Sequence > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
basic_string< _CharT, _Traits,
_Allocator > 
operator+ (const basic_string< _CharT, _Traits, _Allocator > &__lhs, const basic_string< _CharT, _Traits, _Allocator > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
basic_string< _CharT, _Traits,
_Allocator > 
operator+ (const _CharT *__lhs, const basic_string< _CharT, _Traits, _Allocator > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
basic_string< _CharT, _Traits,
_Allocator > 
operator+ (_CharT __lhs, const basic_string< _CharT, _Traits, _Allocator > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
basic_string< _CharT, _Traits,
_Allocator > 
operator+ (const basic_string< _CharT, _Traits, _Allocator > &__lhs, const _CharT *__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
basic_string< _CharT, _Traits,
_Allocator > 
operator+ (const basic_string< _CharT, _Traits, _Allocator > &__lhs, _CharT __rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator== (const basic_string< _CharT, _Traits, _Allocator > &__lhs, const basic_string< _CharT, _Traits, _Allocator > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator== (const _CharT *__lhs, const basic_string< _CharT, _Traits, _Allocator > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator== (const basic_string< _CharT, _Traits, _Allocator > &__lhs, const _CharT *__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator!= (const basic_string< _CharT, _Traits, _Allocator > &__lhs, const basic_string< _CharT, _Traits, _Allocator > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator!= (const _CharT *__lhs, const basic_string< _CharT, _Traits, _Allocator > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator!= (const basic_string< _CharT, _Traits, _Allocator > &__lhs, const _CharT *__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator< (const basic_string< _CharT, _Traits, _Allocator > &__lhs, const basic_string< _CharT, _Traits, _Allocator > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator< (const _CharT *__lhs, const basic_string< _CharT, _Traits, _Allocator > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator< (const basic_string< _CharT, _Traits, _Allocator > &__lhs, const _CharT *__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator<= (const basic_string< _CharT, _Traits, _Allocator > &__lhs, const basic_string< _CharT, _Traits, _Allocator > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator<= (const _CharT *__lhs, const basic_string< _CharT, _Traits, _Allocator > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator<= (const basic_string< _CharT, _Traits, _Allocator > &__lhs, const _CharT *__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator>= (const basic_string< _CharT, _Traits, _Allocator > &__lhs, const basic_string< _CharT, _Traits, _Allocator > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator>= (const _CharT *__lhs, const basic_string< _CharT, _Traits, _Allocator > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator>= (const basic_string< _CharT, _Traits, _Allocator > &__lhs, const _CharT *__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator> (const basic_string< _CharT, _Traits, _Allocator > &__lhs, const basic_string< _CharT, _Traits, _Allocator > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator> (const _CharT *__lhs, const basic_string< _CharT, _Traits, _Allocator > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
bool operator> (const basic_string< _CharT, _Traits, _Allocator > &__lhs, const _CharT *__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
void swap (basic_string< _CharT, _Traits, _Allocator > &__lhs, basic_string< _CharT, _Traits, _Allocator > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Allocator >
std::basic_ostream< _CharT,
_Traits > & 
operator<< (std::basic_ostream< _CharT, _Traits > &__os, const basic_string< _CharT, _Traits, _Allocator > &__str)
 
template<typename _CharT , typename _Traits , typename _Allocator >
std::basic_istream< _CharT,
_Traits > & 
operator>> (std::basic_istream< _CharT, _Traits > &__is, basic_string< _CharT, _Traits, _Allocator > &__str)
 
template<typename _CharT , typename _Traits , typename _Allocator >
std::basic_istream< _CharT,
_Traits > & 
getline (std::basic_istream< _CharT, _Traits > &__is, basic_string< _CharT, _Traits, _Allocator > &__str, _CharT __delim)
 
template<typename _CharT , typename _Traits , typename _Allocator >
std::basic_istream< _CharT,
_Traits > & 
getline (std::basic_istream< _CharT, _Traits > &__is, basic_string< _CharT, _Traits, _Allocator > &__str)
 

Detailed Description

GNU debug classes for public use.

Typedef Documentation

Enumeration Type Documentation

Enumerator
__msg_valid_range 
__msg_insert_singular 
__msg_insert_different 
__msg_erase_bad 
__msg_erase_different 
__msg_subscript_oob 
__msg_empty 
__msg_unpartitioned 
__msg_unpartitioned_pred 
__msg_unsorted 
__msg_unsorted_pred 
__msg_not_heap 
__msg_not_heap_pred 
__msg_bad_bitset_write 
__msg_bad_bitset_read 
__msg_bad_bitset_flip 
__msg_self_splice 
__msg_splice_alloc 
__msg_splice_bad 
__msg_splice_other 
__msg_splice_overlap 
__msg_init_singular 
__msg_init_copy_singular 
__msg_init_const_singular 
__msg_copy_singular 
__msg_bad_deref 
__msg_bad_inc 
__msg_bad_dec 
__msg_iter_subscript_oob 
__msg_advance_oob 
__msg_retreat_oob 
__msg_iter_compare_bad 
__msg_compare_different 
__msg_iter_order_bad 
__msg_order_different 
__msg_distance_bad 
__msg_distance_different 
__msg_deref_istream 
__msg_inc_istream 
__msg_output_ostream 
__msg_deref_istreambuf 
__msg_inc_istreambuf 
__msg_insert_after_end 
__msg_erase_after_bad 
__msg_valid_range2 
__msg_local_iter_compare_bad 
__msg_non_empty_range 
__msg_self_move_assign 
__msg_bucket_index_oob 
__msg_valid_load_factor 
__msg_equal_allocs 
55  {
56  // General checks
70  // std::bitset checks
74  // std::list checks
80  // iterator checks
97  // istream_iterator
100  // ostream_iterator
102  // istreambuf_iterator
105  // forward_list
109  // unordered container local iterators
112  // self move assign
114  // unordered container buckets
118  };
Definition: formatter.h:86
Definition: formatter.h:90
Definition: formatter.h:94
Definition: formatter.h:66
Definition: formatter.h:91
Definition: formatter.h:71
Definition: formatter.h:64
Definition: formatter.h:106
Definition: formatter.h:84
Definition: formatter.h:107
Definition: formatter.h:93
Definition: formatter.h:60
Definition: formatter.h:92
Definition: formatter.h:78
Definition: formatter.h:85
Definition: formatter.h:76
Definition: formatter.h:96
Definition: formatter.h:67
Definition: formatter.h:104
Definition: formatter.h:115
Definition: formatter.h:63
Definition: formatter.h:101
Definition: formatter.h:59
Definition: formatter.h:95
Definition: formatter.h:73
Definition: formatter.h:75
Definition: formatter.h:77
Definition: formatter.h:83
Definition: formatter.h:88
Definition: formatter.h:68
Definition: formatter.h:58
Definition: formatter.h:87
Definition: formatter.h:81
Definition: formatter.h:57
Definition: formatter.h:69
Definition: formatter.h:72
Definition: formatter.h:117
Definition: formatter.h:79
Definition: formatter.h:98
Definition: formatter.h:99
Definition: formatter.h:116
Definition: formatter.h:103
Definition: formatter.h:62
Definition: formatter.h:65
Definition: formatter.h:111
Definition: formatter.h:82
Definition: formatter.h:61
Definition: formatter.h:89
Definition: formatter.h:113
Definition: formatter.h:108

The precision to which we can calculate the distance between two iterators.

Enumerator
__dp_equality 
__dp_sign 
__dp_exact 
71  {
72  __dp_equality, //< Can compare iterator equality, only
73  __dp_sign, //< Can determine equality and ordering
74  __dp_exact //< Can determine distance precisely
75  };
Definition: safe_iterator.h:73
Definition: safe_iterator.h:74
Definition: safe_iterator.h:72

Function Documentation

template<typename _Iterator >
_Siter_base<_Iterator>::iterator_type __gnu_debug::__base ( _Iterator  __it)
inline

Helper function to extract base iterator of random access safe iterator in order to reduce performance impact of debug mode. Limited to random access iterator because it is the only category for which it is possible to check for correct iterators order in the __valid_range function thanks to the < operator.

447  { return _Siter_base<_Iterator>::_S_base(__it); }
template<typename _Iterator >
bool __gnu_debug::__check_dereferenceable ( _Iterator &  )
inline

Assume that some arbitrary iterator is dereferenceable, because we can't prove that it isn't.

71  { return true; }
template<typename _Tp >
bool __gnu_debug::__check_dereferenceable ( const _Tp *  __ptr)
inline

Non-NULL pointers are dereferenceable.

77  { return __ptr; }
template<typename _Iterator , typename _Sequence >
bool __gnu_debug::__check_dereferenceable ( const _Safe_iterator< _Iterator, _Sequence > &  __x)
inline

Safe iterators know if they are singular.

83  { return __x._M_dereferenceable(); }
template<typename _ForwardIterator , typename _Tp >
bool __gnu_debug::__check_partitioned_lower ( _ForwardIterator  __first,
_ForwardIterator  __last,
const _Tp &  __value 
)
inline
355  {
356  while (__first != __last && *__first < __value)
357  ++__first;
358  if (__first != __last)
359  {
360  ++__first;
361  while (__first != __last && !(*__first < __value))
362  ++__first;
363  }
364  return __first == __last;
365  }
template<typename _ForwardIterator , typename _Tp , typename _Pred >
bool __gnu_debug::__check_partitioned_lower ( _ForwardIterator  __first,
_ForwardIterator  __last,
const _Tp &  __value,
_Pred  __pred 
)
inline
389  {
390  while (__first != __last && bool(__pred(*__first, __value)))
391  ++__first;
392  if (__first != __last)
393  {
394  ++__first;
395  while (__first != __last && !bool(__pred(*__first, __value)))
396  ++__first;
397  }
398  return __first == __last;
399  }
template<typename _ForwardIterator , typename _Tp >
bool __gnu_debug::__check_partitioned_upper ( _ForwardIterator  __first,
_ForwardIterator  __last,
const _Tp &  __value 
)
inline
371  {
372  while (__first != __last && !(__value < *__first))
373  ++__first;
374  if (__first != __last)
375  {
376  ++__first;
377  while (__first != __last && __value < *__first)
378  ++__first;
379  }
380  return __first == __last;
381  }
template<typename _ForwardIterator , typename _Tp , typename _Pred >
bool __gnu_debug::__check_partitioned_upper ( _ForwardIterator  __first,
_ForwardIterator  __last,
const _Tp &  __value,
_Pred  __pred 
)
inline
406  {
407  while (__first != __last && !bool(__pred(__value, *__first)))
408  ++__first;
409  if (__first != __last)
410  {
411  ++__first;
412  while (__first != __last && bool(__pred(__value, *__first)))
413  ++__first;
414  }
415  return __first == __last;
416  }
template<typename _Iterator >
bool __gnu_debug::__check_singular ( _Iterator &  __x)
inline
52  { return __check_singular_aux(&__x); }
bool __check_singular_aux(const void *)
Definition: functions.h:45
template<typename _Tp >
bool __gnu_debug::__check_singular ( const _Tp *  __ptr)
inline

Non-NULL pointers are nonsingular.

58  { return __ptr == 0; }
template<typename _Iterator , typename _Sequence >
bool __gnu_debug::__check_singular ( const _Safe_iterator< _Iterator, _Sequence > &  __x)
inline

Safe iterators know if they are singular.

64  { return __x._M_singular(); }
bool __gnu_debug::__check_singular_aux ( const void *  )
inline
45 { return false; }
bool __gnu_debug::__check_singular_aux ( const _Safe_iterator_base *  __x)
inline

Iterators that derive from _Safe_iterator_base but that aren't _Safe_iterators can be determined singular or non-singular via _Safe_iterator_base.

65  { return __x->_M_singular(); }
template<typename _InputIterator >
bool __gnu_debug::__check_sorted ( const _InputIterator &  __first,
const _InputIterator &  __last 
)
inline
264  {
265  // Verify that the < operator for elements in the sequence is a
266  // StrictWeakOrdering by checking that it is irreflexive.
267  __glibcxx_assert(__first == __last || !(*__first < *__first));
268 
269  return __check_sorted_aux(__first, __last,
270  std::__iterator_category(__first));
271  }
bool __check_sorted_aux(const _Safe_iterator< _Iterator, _Sequence > &__first, const _Safe_iterator< _Iterator, _Sequence > &__last, _Predicate __pred, std::random_access_iterator_tag __tag)
Definition: functions.h:254
template<typename _InputIterator , typename _Predicate >
bool __gnu_debug::__check_sorted ( const _InputIterator &  __first,
const _InputIterator &  __last,
_Predicate  __pred 
)
inline
277  {
278  // Verify that the predicate is StrictWeakOrdering by checking that it
279  // is irreflexive.
280  __glibcxx_assert(__first == __last || !__pred(*__first, *__first));
281 
282  return __check_sorted_aux(__first, __last, __pred,
283  std::__iterator_category(__first));
284  }
bool __check_sorted_aux(const _Safe_iterator< _Iterator, _Sequence > &__first, const _Safe_iterator< _Iterator, _Sequence > &__last, _Predicate __pred, std::random_access_iterator_tag __tag)
Definition: functions.h:254
template<typename _InputIterator >
bool __gnu_debug::__check_sorted_aux ( const _InputIterator &  ,
const _InputIterator &  ,
std::input_iterator_tag   
)
inline
194  { return true; }
template<typename _ForwardIterator >
bool __gnu_debug::__check_sorted_aux ( _ForwardIterator  __first,
_ForwardIterator  __last,
std::forward_iterator_tag   
)
inline
202  {
203  if (__first == __last)
204  return true;
205 
206  _ForwardIterator __next = __first;
207  for (++__next; __next != __last; __first = __next, ++__next)
208  if (*__next < *__first)
209  return false;
210 
211  return true;
212  }
template<typename _Iterator , typename _Sequence >
bool __gnu_debug::__check_sorted_aux ( const _Safe_iterator< _Iterator, _Sequence > &  __first,
const _Safe_iterator< _Iterator, _Sequence > &  __last,
std::random_access_iterator_tag  __tag 
)
inline
221  { return __check_sorted_aux(__first.base(), __last.base(), __tag); }
bool __check_sorted_aux(const _Safe_iterator< _Iterator, _Sequence > &__first, const _Safe_iterator< _Iterator, _Sequence > &__last, _Predicate __pred, std::random_access_iterator_tag __tag)
Definition: functions.h:254
template<typename _InputIterator , typename _Predicate >
bool __gnu_debug::__check_sorted_aux ( const _InputIterator &  ,
const _InputIterator &  ,
_Predicate  ,
std::input_iterator_tag   
)
inline
229  { return true; }
template<typename _ForwardIterator , typename _Predicate >
bool __gnu_debug::__check_sorted_aux ( _ForwardIterator  __first,
_ForwardIterator  __last,
_Predicate  __pred,
std::forward_iterator_tag   
)
inline
237  {
238  if (__first == __last)
239  return true;
240 
241  _ForwardIterator __next = __first;
242  for (++__next; __next != __last; __first = __next, ++__next)
243  if (__pred(*__next, *__first))
244  return false;
245 
246  return true;
247  }
template<typename _Iterator , typename _Sequence , typename _Predicate >
bool __gnu_debug::__check_sorted_aux ( const _Safe_iterator< _Iterator, _Sequence > &  __first,
const _Safe_iterator< _Iterator, _Sequence > &  __last,
_Predicate  __pred,
std::random_access_iterator_tag  __tag 
)
inline
258  { return __check_sorted_aux(__first.base(), __last.base(), __pred, __tag); }
bool __check_sorted_aux(const _Safe_iterator< _Iterator, _Sequence > &__first, const _Safe_iterator< _Iterator, _Sequence > &__last, _Predicate __pred, std::random_access_iterator_tag __tag)
Definition: functions.h:254
template<typename _InputIterator1 , typename _InputIterator2 >
bool __gnu_debug::__check_sorted_set ( const _InputIterator1 &  __first,
const _InputIterator1 &  __last,
const _InputIterator2 &   
)
inline
320  {
321  typedef typename std::iterator_traits<_InputIterator1>::value_type
322  _ValueType1;
323  typedef typename std::iterator_traits<_InputIterator2>::value_type
324  _ValueType2;
325 
326  typedef typename std::__are_same<_ValueType1, _ValueType2>::__type
327  _SameType;
328  return __check_sorted_set_aux(__first, __last, _SameType());
329  }
bool __check_sorted_set_aux(const _InputIterator &, const _InputIterator &, _Predicate, std::__false_type)
Definition: functions.h:309
template<typename _InputIterator1 , typename _InputIterator2 , typename _Predicate >
bool __gnu_debug::__check_sorted_set ( const _InputIterator1 &  __first,
const _InputIterator1 &  __last,
const _InputIterator2 &  ,
_Predicate  __pred 
)
inline
337  {
338  typedef typename std::iterator_traits<_InputIterator1>::value_type
339  _ValueType1;
340  typedef typename std::iterator_traits<_InputIterator2>::value_type
341  _ValueType2;
342 
343  typedef typename std::__are_same<_ValueType1, _ValueType2>::__type
344  _SameType;
345  return __check_sorted_set_aux(__first, __last, __pred, _SameType());
346  }
bool __check_sorted_set_aux(const _InputIterator &, const _InputIterator &, _Predicate, std::__false_type)
Definition: functions.h:309
template<typename _InputIterator >
bool __gnu_debug::__check_sorted_set_aux ( const _InputIterator &  __first,
const _InputIterator &  __last,
std::__true_type   
)
inline
291  { return __check_sorted(__first, __last); }
bool __check_sorted(const _InputIterator &__first, const _InputIterator &__last, _Predicate __pred)
Definition: functions.h:275
template<typename _InputIterator >
bool __gnu_debug::__check_sorted_set_aux ( const _InputIterator &  ,
const _InputIterator &  ,
std::__false_type   
)
inline
298  { return true; }
template<typename _InputIterator , typename _Predicate >
bool __gnu_debug::__check_sorted_set_aux ( const _InputIterator &  __first,
const _InputIterator &  __last,
_Predicate  __pred,
std::__true_type   
)
inline
305  { return __check_sorted(__first, __last, __pred); }
bool __check_sorted(const _InputIterator &__first, const _InputIterator &__last, _Predicate __pred)
Definition: functions.h:275
template<typename _InputIterator , typename _Predicate >
bool __gnu_debug::__check_sorted_set_aux ( const _InputIterator &  ,
const _InputIterator &  ,
_Predicate  ,
std::__false_type   
)
inline
312  { return true; }
template<typename _CharT , typename _Integer >
const _CharT* __gnu_debug::__check_string ( const _CharT *  __s,
const _Integer &__n   __attribute__(__unused__) 
)
inline

Checks that __s is non-NULL or __n == 0, and then returns __s.

170  {
171 #ifdef _GLIBCXX_DEBUG_PEDANTIC
172  __glibcxx_assert(__s != 0 || __n == 0);
173 #endif
174  return __s;
175  }
template<typename _CharT >
const _CharT* __gnu_debug::__check_string ( const _CharT *  __s)
inline

Checks that __s is non-NULL and then returns __s.

181  {
182 #ifdef _GLIBCXX_DEBUG_PEDANTIC
183  __glibcxx_assert(__s != 0);
184 #endif
185  return __s;
186  }
template<typename _InputIterator >
_InputIterator __gnu_debug::__check_valid_range ( const _InputIterator &  __first,
const _InputIterator &__last   __attribute__(__unused__) 
)
inline
160  {
161  __glibcxx_check_valid_range(__first, __last);
162  return __first;
163  }
#define __glibcxx_check_valid_range(_First, _Last)
Definition: macros.h:53
template<typename _Iterator1 , typename _Iterator2 >
std::pair<typename std::iterator_traits<_Iterator1>::difference_type, _Distance_precision> __gnu_debug::__get_distance ( const _Iterator1 &  __lhs,
const _Iterator2 &  __rhs,
std::random_access_iterator_tag   
)
inline

Determine the distance between two iterators with some known precision.

85  { return std::make_pair(__rhs - __lhs, __dp_exact); }
Definition: safe_iterator.h:74
template<typename _Iterator1 , typename _Iterator2 >
std::pair<typename std::iterator_traits<_Iterator1>::difference_type, _Distance_precision> __gnu_debug::__get_distance ( const _Iterator1 &  __lhs,
const _Iterator2 &  __rhs,
std::forward_iterator_tag   
)
inline
92  { return std::make_pair(__lhs == __rhs? 0 : 1, __dp_equality); }
Definition: safe_iterator.h:72
template<typename _Iterator1 , typename _Iterator2 >
std::pair<typename std::iterator_traits<_Iterator1>::difference_type, _Distance_precision> __gnu_debug::__get_distance ( const _Iterator1 &  __lhs,
const _Iterator2 &  __rhs 
)
inline
98  {
99  typedef typename std::iterator_traits<_Iterator1>::iterator_category
100  _Category;
101  return __get_distance(__lhs, __rhs, _Category());
102  }
std::pair< typename std::iterator_traits< _Iterator1 >::difference_type, _Distance_precision > __get_distance(const _Iterator1 &__lhs, const _Iterator2 &__rhs)
Definition: safe_iterator.h:97
template<typename _InputIterator >
bool __gnu_debug::__valid_range ( const _InputIterator &  __first,
const _InputIterator &  __last 
)
inline

Don't know what these iterators are, or if they are even iterators (we may get an integral type for InputIterator), so see if they are integral and pass them on to the next phase otherwise.

132  {
133  typedef typename std::__is_integer<_InputIterator>::__type _Integral;
134  return __valid_range_aux(__first, __last, _Integral());
135  }
bool __valid_range_aux(const _InputIterator &__first, const _InputIterator &__last, std::__false_type)
Definition: functions.h:119
template<typename _Iterator , typename _Sequence >
bool __gnu_debug::__valid_range ( const _Safe_iterator< _Iterator, _Sequence > &  __first,
const _Safe_iterator< _Iterator, _Sequence > &  __last 
)
inline

Safe iterators know how to check if they form a valid range.

142  { return __first._M_valid_range(__last); }
template<typename _Iterator , typename _Sequence >
bool __gnu_debug::__valid_range ( const _Safe_local_iterator< _Iterator, _Sequence > &  __first,
const _Safe_local_iterator< _Iterator, _Sequence > &  __last 
)
inline

Safe local iterators know how to check if they form a valid range.

149  { return __first._M_valid_range(__last); }
template<typename _Integral >
bool __gnu_debug::__valid_range_aux ( const _Integral &  ,
const _Integral &  ,
std::__true_type   
)
inline

We say that integral types for a valid range, and defer to other routines to realize what to do with integral types instead of iterators.

112  { return true; }
template<typename _InputIterator >
bool __gnu_debug::__valid_range_aux ( const _InputIterator &  __first,
const _InputIterator &  __last,
std::__false_type   
)
inline

We have iterators, so figure out what kind of iterators that are to see if we can check the range ahead of time.

121  { return __valid_range_aux2(__first, __last,
122  std::__iterator_category(__first)); }
bool __valid_range_aux2(const _InputIterator &, const _InputIterator &, std::input_iterator_tag)
Definition: functions.h:101
template<typename _RandomAccessIterator >
bool __gnu_debug::__valid_range_aux2 ( const _RandomAccessIterator &  __first,
const _RandomAccessIterator &  __last,
std::random_access_iterator_tag   
)
inline

If the distance between two random access iterators is nonnegative, assume the range is valid.

93  { return __last - __first >= 0; }
template<typename _InputIterator >
bool __gnu_debug::__valid_range_aux2 ( const _InputIterator &  ,
const _InputIterator &  ,
std::input_iterator_tag   
)
inline

Can't test for a valid range with input iterators, because iteration may be destructive. So we just assume that the range is valid.

103  { return true; }
template<typename _CharT , typename _Traits , typename _Allocator >
std::basic_istream<_CharT,_Traits>& __gnu_debug::getline ( std::basic_istream< _CharT, _Traits > &  __is,
basic_string< _CharT, _Traits, _Allocator > &  __str,
_CharT  __delim 
)
1134  {
1135  std::basic_istream<_CharT,_Traits>& __res = getline(__is,
1136  __str._M_base(),
1137  __delim);
1138  __str._M_invalidate_all();
1139  return __res;
1140  }
std::basic_istream< _CharT, _Traits > & getline(std::basic_istream< _CharT, _Traits > &__is, basic_string< _CharT, _Traits, _Allocator > &__str)
Definition: string:1144
template<typename _CharT , typename _Traits , typename _Allocator >
std::basic_istream<_CharT,_Traits>& __gnu_debug::getline ( std::basic_istream< _CharT, _Traits > &  __is,
basic_string< _CharT, _Traits, _Allocator > &  __str 
)
1146  {
1147  std::basic_istream<_CharT,_Traits>& __res = getline(__is,
1148  __str._M_base());
1149  __str._M_invalidate_all();
1150  return __res;
1151  }
std::basic_istream< _CharT, _Traits > & getline(std::basic_istream< _CharT, _Traits > &__is, basic_string< _CharT, _Traits, _Allocator > &__str)
Definition: string:1144
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
bool __gnu_debug::operator!= ( const _Safe_local_iterator< _IteratorL, _Sequence > &  __lhs,
const _Safe_local_iterator< _IteratorR, _Sequence > &  __rhs 
)
inline
330  {
331  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
332  _M_message(__msg_iter_compare_bad)
333  ._M_iterator(__lhs, "lhs")
334  ._M_iterator(__rhs, "rhs"));
335  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
336  _M_message(__msg_compare_different)
337  ._M_iterator(__lhs, "lhs")
338  ._M_iterator(__rhs, "rhs"));
339  _GLIBCXX_DEBUG_VERIFY(__lhs._M_in_same_bucket(__rhs),
340  _M_message(__msg_local_iter_compare_bad)
341  ._M_iterator(__lhs, "lhs")
342  ._M_iterator(__rhs, "rhs"));
343  return __lhs.base() != __rhs.base();
344  }
Definition: formatter.h:91
Definition: formatter.h:92
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _Iterator , typename _Sequence >
bool __gnu_debug::operator!= ( const _Safe_local_iterator< _Iterator, _Sequence > &  __lhs,
const _Safe_local_iterator< _Iterator, _Sequence > &  __rhs 
)
inline
350  {
351  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
352  _M_message(__msg_iter_compare_bad)
353  ._M_iterator(__lhs, "lhs")
354  ._M_iterator(__rhs, "rhs"));
355  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
356  _M_message(__msg_compare_different)
357  ._M_iterator(__lhs, "lhs")
358  ._M_iterator(__rhs, "rhs"));
359  _GLIBCXX_DEBUG_VERIFY(__lhs._M_in_same_bucket(__rhs),
360  _M_message(__msg_local_iter_compare_bad)
361  ._M_iterator(__lhs, "lhs")
362  ._M_iterator(__rhs, "rhs"));
363  return __lhs.base() != __rhs.base();
364  }
Definition: formatter.h:91
Definition: formatter.h:92
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
bool __gnu_debug::operator!= ( const _Safe_iterator< _IteratorL, _Sequence > &  __lhs,
const _Safe_iterator< _IteratorR, _Sequence > &  __rhs 
)
inline
518  {
519  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
520  _M_message(__msg_iter_compare_bad)
521  ._M_iterator(__lhs, "lhs")
522  ._M_iterator(__rhs, "rhs"));
523  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
524  _M_message(__msg_compare_different)
525  ._M_iterator(__lhs, "lhs")
526  ._M_iterator(__rhs, "rhs"));
527  return __lhs.base() != __rhs.base();
528  }
Definition: formatter.h:91
Definition: formatter.h:92
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _Iterator , typename _Sequence >
bool __gnu_debug::operator!= ( const _Safe_iterator< _Iterator, _Sequence > &  __lhs,
const _Safe_iterator< _Iterator, _Sequence > &  __rhs 
)
inline
534  {
535  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
536  _M_message(__msg_iter_compare_bad)
537  ._M_iterator(__lhs, "lhs")
538  ._M_iterator(__rhs, "rhs"));
539  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
540  _M_message(__msg_compare_different)
541  ._M_iterator(__lhs, "lhs")
542  ._M_iterator(__rhs, "rhs"));
543  return __lhs.base() != __rhs.base();
544  }
Definition: formatter.h:91
Definition: formatter.h:92
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator!= ( const basic_string< _CharT, _Traits, _Allocator > &  __lhs,
const basic_string< _CharT, _Traits, _Allocator > &  __rhs 
)
inline
991  { return __lhs._M_base() != __rhs._M_base(); }
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator!= ( const _CharT *  __lhs,
const basic_string< _CharT, _Traits, _Allocator > &  __rhs 
)
inline
997  {
998  __glibcxx_check_string(__lhs);
999  return __lhs != __rhs._M_base();
1000  }
#define __glibcxx_check_string(_String)
Definition: macros.h:349
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator!= ( const basic_string< _CharT, _Traits, _Allocator > &  __lhs,
const _CharT *  __rhs 
)
inline
1006  {
1007  __glibcxx_check_string(__rhs);
1008  return __lhs._M_base() != __rhs;
1009  }
#define __glibcxx_check_string(_String)
Definition: macros.h:349
template<typename _Iterator , typename _Sequence >
_Safe_iterator<_Iterator, _Sequence> __gnu_debug::operator+ ( typename _Safe_iterator< _Iterator, _Sequence >::difference_type  __n,
const _Safe_iterator< _Iterator, _Sequence > &  __i 
)
inline
714  { return __i + __n; }
template<typename _CharT , typename _Traits , typename _Allocator >
basic_string<_CharT,_Traits,_Allocator> __gnu_debug::operator+ ( const basic_string< _CharT, _Traits, _Allocator > &  __lhs,
const basic_string< _CharT, _Traits, _Allocator > &  __rhs 
)
inline
931  { return basic_string<_CharT,_Traits,_Allocator>(__lhs) += __rhs; }
Definition: basic_string.h:45
template<typename _CharT , typename _Traits , typename _Allocator >
basic_string<_CharT,_Traits,_Allocator> __gnu_debug::operator+ ( const _CharT *  __lhs,
const basic_string< _CharT, _Traits, _Allocator > &  __rhs 
)
inline
937  {
938  __glibcxx_check_string(__lhs);
939  return basic_string<_CharT,_Traits,_Allocator>(__lhs) += __rhs;
940  }
#define __glibcxx_check_string(_String)
Definition: macros.h:349
Definition: basic_string.h:45
template<typename _CharT , typename _Traits , typename _Allocator >
basic_string<_CharT,_Traits,_Allocator> __gnu_debug::operator+ ( _CharT  __lhs,
const basic_string< _CharT, _Traits, _Allocator > &  __rhs 
)
inline
946  { return basic_string<_CharT,_Traits,_Allocator>(1, __lhs) += __rhs; }
Definition: basic_string.h:45
template<typename _CharT , typename _Traits , typename _Allocator >
basic_string<_CharT,_Traits,_Allocator> __gnu_debug::operator+ ( const basic_string< _CharT, _Traits, _Allocator > &  __lhs,
const _CharT *  __rhs 
)
inline
952  {
953  __glibcxx_check_string(__rhs);
954  return basic_string<_CharT,_Traits,_Allocator>(__lhs) += __rhs;
955  }
#define __glibcxx_check_string(_String)
Definition: macros.h:349
Definition: basic_string.h:45
template<typename _CharT , typename _Traits , typename _Allocator >
basic_string<_CharT,_Traits,_Allocator> __gnu_debug::operator+ ( const basic_string< _CharT, _Traits, _Allocator > &  __lhs,
_CharT  __rhs 
)
inline
961  { return basic_string<_CharT,_Traits,_Allocator>(__lhs) += __rhs; }
Definition: basic_string.h:45
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
_Safe_iterator<_IteratorL, _Sequence>::difference_type __gnu_debug::operator- ( const _Safe_iterator< _IteratorL, _Sequence > &  __lhs,
const _Safe_iterator< _IteratorR, _Sequence > &  __rhs 
)
inline
682  {
683  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
684  _M_message(__msg_distance_bad)
685  ._M_iterator(__lhs, "lhs")
686  ._M_iterator(__rhs, "rhs"));
687  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
688  _M_message(__msg_distance_different)
689  ._M_iterator(__lhs, "lhs")
690  ._M_iterator(__rhs, "rhs"));
691  return __lhs.base() - __rhs.base();
692  }
Definition: formatter.h:96
Definition: formatter.h:95
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _Iterator , typename _Sequence >
_Safe_iterator<_Iterator, _Sequence>::difference_type __gnu_debug::operator- ( const _Safe_iterator< _Iterator, _Sequence > &  __lhs,
const _Safe_iterator< _Iterator, _Sequence > &  __rhs 
)
inline
698  {
699  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
700  _M_message(__msg_distance_bad)
701  ._M_iterator(__lhs, "lhs")
702  ._M_iterator(__rhs, "rhs"));
703  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
704  _M_message(__msg_distance_different)
705  ._M_iterator(__lhs, "lhs")
706  ._M_iterator(__rhs, "rhs"));
707  return __lhs.base() - __rhs.base();
708  }
Definition: formatter.h:96
Definition: formatter.h:95
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
bool __gnu_debug::operator< ( const _Safe_iterator< _IteratorL, _Sequence > &  __lhs,
const _Safe_iterator< _IteratorR, _Sequence > &  __rhs 
)
inline
550  {
551  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
552  _M_message(__msg_iter_order_bad)
553  ._M_iterator(__lhs, "lhs")
554  ._M_iterator(__rhs, "rhs"));
555  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
556  _M_message(__msg_order_different)
557  ._M_iterator(__lhs, "lhs")
558  ._M_iterator(__rhs, "rhs"));
559  return __lhs.base() < __rhs.base();
560  }
Definition: formatter.h:94
Definition: formatter.h:93
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _Iterator , typename _Sequence >
bool __gnu_debug::operator< ( const _Safe_iterator< _Iterator, _Sequence > &  __lhs,
const _Safe_iterator< _Iterator, _Sequence > &  __rhs 
)
inline
566  {
567  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
568  _M_message(__msg_iter_order_bad)
569  ._M_iterator(__lhs, "lhs")
570  ._M_iterator(__rhs, "rhs"));
571  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
572  _M_message(__msg_order_different)
573  ._M_iterator(__lhs, "lhs")
574  ._M_iterator(__rhs, "rhs"));
575  return __lhs.base() < __rhs.base();
576  }
Definition: formatter.h:94
Definition: formatter.h:93
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator< ( const basic_string< _CharT, _Traits, _Allocator > &  __lhs,
const basic_string< _CharT, _Traits, _Allocator > &  __rhs 
)
inline
1015  { return __lhs._M_base() < __rhs._M_base(); }
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator< ( const _CharT *  __lhs,
const basic_string< _CharT, _Traits, _Allocator > &  __rhs 
)
inline
1021  {
1022  __glibcxx_check_string(__lhs);
1023  return __lhs < __rhs._M_base();
1024  }
#define __glibcxx_check_string(_String)
Definition: macros.h:349
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator< ( const basic_string< _CharT, _Traits, _Allocator > &  __lhs,
const _CharT *  __rhs 
)
inline
1030  {
1031  __glibcxx_check_string(__rhs);
1032  return __lhs._M_base() < __rhs;
1033  }
#define __glibcxx_check_string(_String)
Definition: macros.h:349
template<typename _CharT , typename _Traits , typename _Allocator >
std::basic_ostream<_CharT, _Traits>& __gnu_debug::operator<< ( std::basic_ostream< _CharT, _Traits > &  __os,
const basic_string< _CharT, _Traits, _Allocator > &  __str 
)
1118  { return __os << __str._M_base(); }
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
bool __gnu_debug::operator<= ( const _Safe_iterator< _IteratorL, _Sequence > &  __lhs,
const _Safe_iterator< _IteratorR, _Sequence > &  __rhs 
)
inline
582  {
583  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
584  _M_message(__msg_iter_order_bad)
585  ._M_iterator(__lhs, "lhs")
586  ._M_iterator(__rhs, "rhs"));
587  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
588  _M_message(__msg_order_different)
589  ._M_iterator(__lhs, "lhs")
590  ._M_iterator(__rhs, "rhs"));
591  return __lhs.base() <= __rhs.base();
592  }
Definition: formatter.h:94
Definition: formatter.h:93
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _Iterator , typename _Sequence >
bool __gnu_debug::operator<= ( const _Safe_iterator< _Iterator, _Sequence > &  __lhs,
const _Safe_iterator< _Iterator, _Sequence > &  __rhs 
)
inline
598  {
599  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
600  _M_message(__msg_iter_order_bad)
601  ._M_iterator(__lhs, "lhs")
602  ._M_iterator(__rhs, "rhs"));
603  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
604  _M_message(__msg_order_different)
605  ._M_iterator(__lhs, "lhs")
606  ._M_iterator(__rhs, "rhs"));
607  return __lhs.base() <= __rhs.base();
608  }
Definition: formatter.h:94
Definition: formatter.h:93
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator<= ( const basic_string< _CharT, _Traits, _Allocator > &  __lhs,
const basic_string< _CharT, _Traits, _Allocator > &  __rhs 
)
inline
1039  { return __lhs._M_base() <= __rhs._M_base(); }
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator<= ( const _CharT *  __lhs,
const basic_string< _CharT, _Traits, _Allocator > &  __rhs 
)
inline
1045  {
1046  __glibcxx_check_string(__lhs);
1047  return __lhs <= __rhs._M_base();
1048  }
#define __glibcxx_check_string(_String)
Definition: macros.h:349
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator<= ( const basic_string< _CharT, _Traits, _Allocator > &  __lhs,
const _CharT *  __rhs 
)
inline
1054  {
1055  __glibcxx_check_string(__rhs);
1056  return __lhs._M_base() <= __rhs;
1057  }
#define __glibcxx_check_string(_String)
Definition: macros.h:349
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
bool __gnu_debug::operator== ( const _Safe_local_iterator< _IteratorL, _Sequence > &  __lhs,
const _Safe_local_iterator< _IteratorR, _Sequence > &  __rhs 
)
inline
286  {
287  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
288  _M_message(__msg_iter_compare_bad)
289  ._M_iterator(__lhs, "lhs")
290  ._M_iterator(__rhs, "rhs"));
291  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
292  _M_message(__msg_compare_different)
293  ._M_iterator(__lhs, "lhs")
294  ._M_iterator(__rhs, "rhs"));
295  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
296  _M_message(__msg_compare_different)
297  ._M_iterator(__lhs, "lhs")
298  ._M_iterator(__rhs, "rhs"));
299  _GLIBCXX_DEBUG_VERIFY(__lhs._M_in_same_bucket(__rhs),
300  _M_message(__msg_local_iter_compare_bad)
301  ._M_iterator(__lhs, "lhs")
302  ._M_iterator(__rhs, "rhs"));
303  return __lhs.base() == __rhs.base();
304  }
Definition: formatter.h:91
Definition: formatter.h:92
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _Iterator , typename _Sequence >
bool __gnu_debug::operator== ( const _Safe_local_iterator< _Iterator, _Sequence > &  __lhs,
const _Safe_local_iterator< _Iterator, _Sequence > &  __rhs 
)
inline
310  {
311  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
312  _M_message(__msg_iter_compare_bad)
313  ._M_iterator(__lhs, "lhs")
314  ._M_iterator(__rhs, "rhs"));
315  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
316  _M_message(__msg_compare_different)
317  ._M_iterator(__lhs, "lhs")
318  ._M_iterator(__rhs, "rhs"));
319  _GLIBCXX_DEBUG_VERIFY(__lhs._M_in_same_bucket(__rhs),
320  _M_message(__msg_local_iter_compare_bad)
321  ._M_iterator(__lhs, "lhs")
322  ._M_iterator(__rhs, "rhs"));
323  return __lhs.base() == __rhs.base();
324  }
Definition: formatter.h:91
Definition: formatter.h:92
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
bool __gnu_debug::operator== ( const _Safe_iterator< _IteratorL, _Sequence > &  __lhs,
const _Safe_iterator< _IteratorR, _Sequence > &  __rhs 
)
inline
486  {
487  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
488  _M_message(__msg_iter_compare_bad)
489  ._M_iterator(__lhs, "lhs")
490  ._M_iterator(__rhs, "rhs"));
491  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
492  _M_message(__msg_compare_different)
493  ._M_iterator(__lhs, "lhs")
494  ._M_iterator(__rhs, "rhs"));
495  return __lhs.base() == __rhs.base();
496  }
Definition: formatter.h:91
Definition: formatter.h:92
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _Iterator , typename _Sequence >
bool __gnu_debug::operator== ( const _Safe_iterator< _Iterator, _Sequence > &  __lhs,
const _Safe_iterator< _Iterator, _Sequence > &  __rhs 
)
inline
502  {
503  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
504  _M_message(__msg_iter_compare_bad)
505  ._M_iterator(__lhs, "lhs")
506  ._M_iterator(__rhs, "rhs"));
507  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
508  _M_message(__msg_compare_different)
509  ._M_iterator(__lhs, "lhs")
510  ._M_iterator(__rhs, "rhs"));
511  return __lhs.base() == __rhs.base();
512  }
Definition: formatter.h:91
Definition: formatter.h:92
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator== ( const basic_string< _CharT, _Traits, _Allocator > &  __lhs,
const basic_string< _CharT, _Traits, _Allocator > &  __rhs 
)
inline
967  { return __lhs._M_base() == __rhs._M_base(); }
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator== ( const _CharT *  __lhs,
const basic_string< _CharT, _Traits, _Allocator > &  __rhs 
)
inline
973  {
974  __glibcxx_check_string(__lhs);
975  return __lhs == __rhs._M_base();
976  }
#define __glibcxx_check_string(_String)
Definition: macros.h:349
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator== ( const basic_string< _CharT, _Traits, _Allocator > &  __lhs,
const _CharT *  __rhs 
)
inline
982  {
983  __glibcxx_check_string(__rhs);
984  return __lhs._M_base() == __rhs;
985  }
#define __glibcxx_check_string(_String)
Definition: macros.h:349
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
bool __gnu_debug::operator> ( const _Safe_iterator< _IteratorL, _Sequence > &  __lhs,
const _Safe_iterator< _IteratorR, _Sequence > &  __rhs 
)
inline
614  {
615  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
616  _M_message(__msg_iter_order_bad)
617  ._M_iterator(__lhs, "lhs")
618  ._M_iterator(__rhs, "rhs"));
619  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
620  _M_message(__msg_order_different)
621  ._M_iterator(__lhs, "lhs")
622  ._M_iterator(__rhs, "rhs"));
623  return __lhs.base() > __rhs.base();
624  }
Definition: formatter.h:94
Definition: formatter.h:93
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _Iterator , typename _Sequence >
bool __gnu_debug::operator> ( const _Safe_iterator< _Iterator, _Sequence > &  __lhs,
const _Safe_iterator< _Iterator, _Sequence > &  __rhs 
)
inline
630  {
631  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
632  _M_message(__msg_iter_order_bad)
633  ._M_iterator(__lhs, "lhs")
634  ._M_iterator(__rhs, "rhs"));
635  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
636  _M_message(__msg_order_different)
637  ._M_iterator(__lhs, "lhs")
638  ._M_iterator(__rhs, "rhs"));
639  return __lhs.base() > __rhs.base();
640  }
Definition: formatter.h:94
Definition: formatter.h:93
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator> ( const basic_string< _CharT, _Traits, _Allocator > &  __lhs,
const basic_string< _CharT, _Traits, _Allocator > &  __rhs 
)
inline
1087  { return __lhs._M_base() > __rhs._M_base(); }
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator> ( const _CharT *  __lhs,
const basic_string< _CharT, _Traits, _Allocator > &  __rhs 
)
inline
1093  {
1094  __glibcxx_check_string(__lhs);
1095  return __lhs > __rhs._M_base();
1096  }
#define __glibcxx_check_string(_String)
Definition: macros.h:349
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator> ( const basic_string< _CharT, _Traits, _Allocator > &  __lhs,
const _CharT *  __rhs 
)
inline
1102  {
1103  __glibcxx_check_string(__rhs);
1104  return __lhs._M_base() > __rhs;
1105  }
#define __glibcxx_check_string(_String)
Definition: macros.h:349
template<typename _IteratorL , typename _IteratorR , typename _Sequence >
bool __gnu_debug::operator>= ( const _Safe_iterator< _IteratorL, _Sequence > &  __lhs,
const _Safe_iterator< _IteratorR, _Sequence > &  __rhs 
)
inline
646  {
647  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
648  _M_message(__msg_iter_order_bad)
649  ._M_iterator(__lhs, "lhs")
650  ._M_iterator(__rhs, "rhs"));
651  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
652  _M_message(__msg_order_different)
653  ._M_iterator(__lhs, "lhs")
654  ._M_iterator(__rhs, "rhs"));
655  return __lhs.base() >= __rhs.base();
656  }
Definition: formatter.h:94
Definition: formatter.h:93
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _Iterator , typename _Sequence >
bool __gnu_debug::operator>= ( const _Safe_iterator< _Iterator, _Sequence > &  __lhs,
const _Safe_iterator< _Iterator, _Sequence > &  __rhs 
)
inline
662  {
663  _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! __rhs._M_singular(),
664  _M_message(__msg_iter_order_bad)
665  ._M_iterator(__lhs, "lhs")
666  ._M_iterator(__rhs, "rhs"));
667  _GLIBCXX_DEBUG_VERIFY(__lhs._M_can_compare(__rhs),
668  _M_message(__msg_order_different)
669  ._M_iterator(__lhs, "lhs")
670  ._M_iterator(__rhs, "rhs"));
671  return __lhs.base() >= __rhs.base();
672  }
Definition: formatter.h:94
Definition: formatter.h:93
#define _GLIBCXX_DEBUG_VERIFY(_Condition, _ErrorMessage)
Definition: macros.h:49
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator>= ( const basic_string< _CharT, _Traits, _Allocator > &  __lhs,
const basic_string< _CharT, _Traits, _Allocator > &  __rhs 
)
inline
1063  { return __lhs._M_base() >= __rhs._M_base(); }
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator>= ( const _CharT *  __lhs,
const basic_string< _CharT, _Traits, _Allocator > &  __rhs 
)
inline
1069  {
1070  __glibcxx_check_string(__lhs);
1071  return __lhs >= __rhs._M_base();
1072  }
#define __glibcxx_check_string(_String)
Definition: macros.h:349
template<typename _CharT , typename _Traits , typename _Allocator >
bool __gnu_debug::operator>= ( const basic_string< _CharT, _Traits, _Allocator > &  __lhs,
const _CharT *  __rhs 
)
inline
1078  {
1079  __glibcxx_check_string(__rhs);
1080  return __lhs._M_base() >= __rhs;
1081  }
#define __glibcxx_check_string(_String)
Definition: macros.h:349
template<typename _CharT , typename _Traits , typename _Allocator >
std::basic_istream<_CharT,_Traits>& __gnu_debug::operator>> ( std::basic_istream< _CharT, _Traits > &  __is,
basic_string< _CharT, _Traits, _Allocator > &  __str 
)
1124  {
1125  std::basic_istream<_CharT,_Traits>& __res = __is >> __str._M_base();
1126  __str._M_invalidate_all();
1127  return __res;
1128  }
template<typename _CharT , typename _Traits , typename _Allocator >
void __gnu_debug::swap ( basic_string< _CharT, _Traits, _Allocator > &  __lhs,
basic_string< _CharT, _Traits, _Allocator > &  __rhs 
)
inline
1112  { __lhs.swap(__rhs); }