__gnu_debug(3)
π __gnu_debug(3) β Library Functions Manual π
okay bestie, welcome to __gnu_debug(3), the GNU debug classes page. This is literally the public-use debug glow-up for libstdc++ β safety, checking, and debug instrumentation, iykyk. It's giving main character energy for your containers. No cap. πβ¨
We're doing part 1, so let's get into the classes, typedefs, and enums. Buckle up. π¦
β¨ NAME β¨
__gnu_debug β GNU debug classes for public use. π
πΈ SYNOPSIS πΈ
π Classes π
class _After_nth_fromβ no description in the manpage, just the name. Keep scrolling. πstruct _BeforeBeginHelperβ also no description, just the struct name. π¦class _Equal_toβ no description. β¨class _Not_equal_toβ no description. π«class _Safe_containerβ a safe class that handles some allocator-dependent operations. πclass _Safe_forward_listβ special iterator swap and invalidation forforward_list, all because of thebefore_beginiterator. π¦class _Safe_iteratorβ the safe iterator wrapper, slay. πclass _Safe_iterator_baseβ basic functionality for a safe iterator. β¨class _Safe_local_iteratorβ safe iterator wrapper, but local. πclass _Safe_local_iterator_baseβ basic functionality for a safe iterator. πΈclass _Safe_node_sequenceβ like_Safe_sequence, but with a special_M_invalidate_allimplementation not invalidating past-the-end iterators. Used by node based sequence. π₯class _Safe_sequenceβ base class for constructing a safe sequence type that tracks iterators that reference it. πclass _Safe_sequence_baseβ base class that supports tracking of iterators that reference a sequence. πclass _Safe_unordered_containerβ base class for constructing a safe unordered container type that tracks iterators that reference it. πclass _Safe_unordered_container_baseβ base class that supports tracking of local iterators that reference an unordered container. π¦class _Safe_vectorβ base class for Debug Modevector. β¨struct _Sequence_traitsβ no description, just the struct. πclass basic_stringβstd::basic_stringwith safety/checking/debug instrumentation. πclass type_infoβ part of RTTI. π
π Typedefs π
typedef basic_string< char > stringβ the classic. πtypedef basic_string< char16_t > u16stringβ a string ofchar16_t. β¨typedef basic_string< char32_t > u32stringβ a string ofchar32_t. πΈtypedef basic_string< wchar_t > wstringβ wide string energy. π¦
π₯ Enumerations π₯
The _Debug_msg_id enum is a whole alphabet of debug messages, and _Distance_precision is its own precision vibe. Exact declarations, no edits, fr fr:
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,
__msg_insert_range_from_self, __msg_irreflexive_ordering }
enum _Distance_precision { __dp_none, __dp_equality, __dp_sign,
__dp_sign_max_size, __dp_exact }
π οΈ Functions π οΈ
okay bestie, so this is the part where we list all the internal helper functions. no cap, there are a LOT. each one is a little template darling. let's go. π
__baseβ first up, this overload. signature:
template<typename _Iterator> constexpr _Iterator __base (_Iterator __it)
__baseβ another one, with_Safe_iteratorandstd::random_access_iterator_tag. signature:
template<typename _Iterator, typename _Sequence> constexpr _Iterator
__base (const _Safe_iterator< _Iterator, _Sequence,
std::random_access_iterator_tag > &__it)
__baseβ this one is giving move_iterator energy. signature:
template<typename _Iterator> constexpr auto __base (const
std::move_iterator< _Iterator > &__it) ->
decltype(std::make_move_iterator(__base(__it.base())))
__baseβ reverse_iterator with a_Safe_iteratorinside? iconic. signature:
template<typename _Iterator, typename _Sequence> constexpr
std::reverse_iterator< _Iterator > __base (const
std::reverse_iterator< _Safe_iterator< _Iterator, _Sequence,
std::random_access_iterator_tag > > &__it)
__can_advanceβ simple input iterator and size. signature:
template<typename _InputIterator, typename _Size> constexpr bool
__can_advance (_InputIterator, _Size)
__can_advanceβ now with astd::pairandint. signature:
template<typename _InputIterator, typename _Diff> constexpr bool
__can_advance (_InputIterator, const std::pair< _Diff,
_Distance_precision > &, int)
__can_advanceβ_Safe_iteratorversion with size. signature:
template<typename _Iterator, typename _Sequence, typename _Category,
typename _Size> constexpr bool __can_advance (const _Safe_iterator<
_Iterator, _Sequence, _Category > &, _Size)
__can_advanceβ_Safe_iteratorwith pair and int. signature:
template<typename _Iterator, typename _Sequence, typename _Category,
typename _Diff> constexpr bool __can_advance (const _Safe_iterator<
_Iterator, _Sequence, _Category > &, const std::pair< _Diff,
_Distance_precision > &, int)
__can_advanceβ move_iterator with size. signature:
template<typename _Iterator, typename _Size> constexpr bool
__can_advance (const std::move_iterator< _Iterator > &__it, _Size
__n)
__can_advanceβ move_iterator with pair and int. signature:
template<typename _Iterator, typename _Diff> constexpr bool
__can_advance (const std::move_iterator< _Iterator > &__it, const
std::pair< _Diff, _Distance_precision > &__dist, int __way)
__can_advanceβ reverse_iterator with size. signature:
template<typename _Iterator, typename _Size> constexpr bool
__can_advance (const std::reverse_iterator< _Iterator > &__it, _Size
__n)
__can_advanceβ reverse_iterator with pair and int. signature:
template<typename _Iterator, typename _Diff> constexpr bool
__can_advance (const std::reverse_iterator< _Iterator > &__it, const
std::pair< _Diff, _Distance_precision > &__dist, int __way)
__check_partitioned_lowerβ forward iterators and a value. signature:
template<typename _ForwardIterator, typename _Tp> constexpr bool
__check_partitioned_lower (_ForwardIterator __first,
_ForwardIterator __last, const _Tp &__value)
__check_partitioned_lowerβ now with a predicate. signature:
template<typename _ForwardIterator, typename _Tp, typename _Pred>
constexpr bool __check_partitioned_lower (_ForwardIterator __first,
_ForwardIterator __last, const _Tp &__value, _Pred __pred)
__check_partitioned_upperβ forward iterators and a value. signature:
template<typename _ForwardIterator, typename _Tp> constexpr bool
__check_partitioned_upper (_ForwardIterator __first,
_ForwardIterator __last, const _Tp &__value)
__check_partitioned_upperβ now with a predicate. signature:
template<typename _ForwardIterator, typename _Tp, typename _Pred>
constexpr bool __check_partitioned_upper (_ForwardIterator __first,
_ForwardIterator __last, const _Tp &__value, _Pred __pred)
__check_singularβ iterator const ref. signature:
template<typename _Iterator> constexpr bool __check_singular (_Iterator
const &)
__check_singularβ pointer const ref. signature:
template<typename _Tp> constexpr bool __check_singular (_Tp *const
&__ptr)
__check_singular_auxβ takes a_Safe_iterator_basepointer. signature:
bool __check_singular_aux (const _Safe_iterator_base *__x)
__check_singular_auxβ takes aclass _Safe_iterator_basepointer. signature:
bool __check_singular_aux (const class _Safe_iterator_base *)
__check_singular_auxβ takes aconst voidpointer. signature:
bool __check_singular_aux (const void *)
__check_sortedβ input iterators only. signature:
template<typename _InputIterator> constexpr bool __check_sorted (const
_InputIterator &__first, const _InputIterator &__last)
__check_sortedβ with a predicate. signature:
template<typename _InputIterator, typename _Predicate> constexpr bool
__check_sorted (const _InputIterator &__first, const _InputIterator
&__last, _Predicate __pred)
__check_sorted_auxβ forward iterator, predicate, forward_iterator_tag. signature:
template<typename _ForwardIterator, typename _Predicate> constexpr bool
__check_sorted_aux (_ForwardIterator __first, _ForwardIterator
__last, _Predicate __pred, std::forward_iterator_tag)
__check_sorted_auxβ forward iterator, forward_iterator_tag. signature:
template<typename _ForwardIterator> constexpr bool __check_sorted_aux
(_ForwardIterator __first, _ForwardIterator __last,
std::forward_iterator_tag)
__check_sorted_auxβ input iterator, predicate, input_iterator_tag. signature:
template<typename _InputIterator, typename _Predicate> constexpr bool
__check_sorted_aux (const _InputIterator &, const _InputIterator &,
_Predicate, std::input_iterator_tag)
__check_sorted_auxβ input iterator, input_iterator_tag. signature:
template<typename _InputIterator> constexpr bool __check_sorted_aux
(const _InputIterator &, const _InputIterator &,
std::input_iterator_tag)
__check_sorted_setβ two input iterators. signature:
template<typename _InputIterator1, typename _InputIterator2> constexpr
bool __check_sorted_set (const _InputIterator1 &__first, const
_InputIterator1 &__last, const _InputIterator2 &)
__check_sorted_setβ with a predicate. signature:
template<typename _InputIterator1, typename _InputIterator2, typename
_Predicate> constexpr bool __check_sorted_set (const _InputIterator1
&__first, const _InputIterator1 &__last, const _InputIterator2 &,
_Predicate __pred)
__check_sorted_set_auxβ predicate,std::__false_type. signature:
template<typename _InputIterator, typename _Predicate> constexpr bool
__check_sorted_set_aux (const _InputIterator &, const _InputIterator
&, _Predicate, std::__false_type)
__check_sorted_set_auxβstd::__false_type. signature:
template<typename _InputIterator> constexpr bool __check_sorted_set_aux
(const _InputIterator &, const _InputIterator &, std::__false_type)
__check_sorted_set_auxβ predicate,std::__true_type. signature:
template<typename _InputIterator, typename _Predicate> constexpr bool
__check_sorted_set_aux (const _InputIterator &__first, const
_InputIterator &__last, _Predicate __pred, std::__true_type)
__check_sorted_set_auxβstd::__true_type. signature:
template<typename _InputIterator> constexpr bool __check_sorted_set_aux
(const _InputIterator &__first, const _InputIterator &__last,
std::__true_type)
__check_stringβ char type, integer, file, line, function. signature:
template<typename _CharT, typename _Integer> const _CharT *
__check_string (const _CharT *__s, _Integer __n, const char *__file,
unsigned int __line, const char *__function)
__check_stringβ char type, file, line, function. signature:
template<typename _CharT> const _CharT * __check_string (const _CharT
*__s, const char *__file, unsigned int __line, const char
*__function)
__check_valid_rangeβ input iterators, file, line, function. signature:
template<typename _InputIterator> constexpr _InputIterator
__check_valid_range (const _InputIterator &__first, const
_InputIterator &__last, const char *__file, unsigned int __line,
const char *__function)
__foreign_iteratorβ safe iterator, other begin, other end. signature:
template<typename _Iterator, typename _Sequence, typename _Category,
typename _InputIterator> bool __foreign_iterator (const
_Safe_iterator< _Iterator, _Sequence, _Category > &__it,
_InputIterator __other, _InputIterator __other_end)
__foreign_iterator_aux2β two safe iterators of different sequences. signature:
template<typename _Iterator, typename _Sequence, typename _Category,
typename _OtherIterator, typename _OtherSequence, typename
_OtherCategory> bool __foreign_iterator_aux2 (const _Safe_iterator<
_Iterator, _Sequence, _Category > &, const _Safe_iterator<
_OtherIterator, _OtherSequence, _OtherCategory > &, const
_Safe_iterator< _OtherIterator, _OtherSequence, _OtherCategory > &)
__foreign_iterator_aux2β safe iterator and input iterator range. signature:
template<typename _Iterator, typename _Sequence, typename _Category,
typename _InputIterator> bool __foreign_iterator_aux2 (const
_Safe_iterator< _Iterator, _Sequence, _Category > &__it, const
_InputIterator &__other, const _InputIterator &__other_end)
__foreign_iterator_aux2β safe iterator and other safe iterator same sequence. signature:
template<typename _Iterator, typename _Sequence, typename _Category,
typename _OtherIterator> bool __foreign_iterator_aux2 (const
_Safe_iterator< _Iterator, _Sequence, _Category > &__it, const
_Safe_iterator< _OtherIterator, _Sequence, _Category > &__other,
const _Safe_iterator< _OtherIterator, _Sequence, _Category > &)
__foreign_iterator_aux3βstd::__false_type. signature:
template<typename _Iterator, typename _Sequence, typename _Category,
typename _InputIterator> bool __foreign_iterator_aux3 (const
_Safe_iterator< _Iterator, _Sequence, _Category > &, const
_InputIterator &, const _InputIterator &, std::__false_type)
__foreign_iterator_aux3βstd::__true_type. signature:
template<typename _Iterator, typename _Sequence, typename _Category,
typename _InputIterator> bool __foreign_iterator_aux3 (const
_Safe_iterator< _Iterator, _Sequence, _Category > &__it, const
_InputIterator &__other, const _InputIterator &__other_end,
std::__true_type)
__foreign_iterator_aux4β variadic. signature:
template<typename _Iterator, typename _Sequence, typename _Category>
bool __foreign_iterator_aux4 (const _Safe_iterator< _Iterator,
_Sequence, _Category > &,...)
__foreign_iterator_aux4β value type pointer. signature:
template<typename _Iterator, typename _Sequence, typename _Category>
bool __foreign_iterator_aux4 (const _Safe_iterator< _Iterator,
_Sequence, _Category > &__it, const typename _Sequence::value_type
*__other)
__get_distanceβ two iterators. signature:
template<typename _Iterator> constexpr _Distance_traits< _Iterator
>::__type __get_distance (_Iterator __lhs, _Iterator __rhs)
__get_distanceβ withstd::input_iterator_tag. signature:
template<typename _Iterator> constexpr _Distance_traits< _Iterator
>::__type __get_distance (_Iterator __lhs, _Iterator __rhs,
std::input_iterator_tag)
__get_distanceβ withstd::random_access_iterator_tag. signature:
template<typename _Iterator> constexpr _Distance_traits< _Iterator
>::__type __get_distance (_Iterator __lhs, _Iterator __rhs,
std::random_access_iterator_tag)
__get_distanceβ move_iterator version. signature:
template<typename _Iterator> constexpr _Distance_traits< _Iterator
>::__type __get_distance (const std::move_iterator< _Iterator >
&__first, const std::move_iterator< _Iterator > &__last)
__get_distanceβ reverse_iterator version. signature:
template<typename _Iterator> constexpr _Distance_traits< _Iterator
>::__type __get_distance (const std::reverse_iterator< _Iterator >
&__first, const std::reverse_iterator< _Iterator > &__last)
__is_irreflexiveβ one iterator. signature:
template<typename _Iterator> constexpr bool __is_irreflexive (_Iterator
__it)
__is_irreflexive_predβ iterator and predicate. signature:
template<typename _Iterator, typename _Pred> constexpr bool
__is_irreflexive_pred (_Iterator __it, _Pred __pred)
__unsafeβ plain iterator. signature:
template<typename _Iterator> constexpr _Iterator __unsafe (_Iterator
__it)
__unsafeβ_Safe_iteratorversion. signature:
template<typename _Iterator, typename _Sequence> _Iterator __unsafe
(const _Safe_iterator< _Iterator, _Sequence > &__it)
__unsafeβ_Safe_local_iteratorversion. signature:
template<typename _Iterator, typename _UContainer> _Iterator __unsafe
(const _Safe_local_iterator< _Iterator, _UContainer > &__it)
__unsafeβ move_iterator version. signature:
template<typename _Iterator> constexpr auto __unsafe (const
std::move_iterator< _Iterator > &__it) ->
decltype(std::make_move_iterator(__unsafe(__it.base())))
__unsafeβ reverse_iterator version. signature:
template<typename _Iterator> constexpr auto __unsafe (const
std::reverse_iterator< _Iterator > &__it) ->
decltype(std::__make_reverse_iterator(__unsafe(__it.base())))
__valid_rangeβ two input iterators. signature:
template<typename _InputIterator> constexpr bool __valid_range
(_InputIterator __first, _InputIterator __last)
__valid_rangeβ two input iterators plus distance. signature:
template<typename _InputIterator> constexpr bool __valid_range
(_InputIterator __first, _InputIterator __last, typename
_Distance_traits< _InputIterator >::__type &__dist)
__valid_rangeβ two safe iterators. signature:
template<typename _Iterator, typename _Sequence, typename _Category>
constexpr bool __valid_range (const _Safe_iterator< _Iterator,
_Sequence, _Category > &, const _Safe_iterator< _Iterator,
_Sequence, _Category > &)
__valid_rangeβ two safe iterators plus distance. signature:
template<typename _Iterator, typename _Sequence, typename _Category>
constexpr bool __valid_range (const _Safe_iterator< _Iterator,
_Sequence, _Category > &, const _Safe_iterator< _Iterator,
_Sequence, _Category > &, typename _Distance_traits< _Iterator
>::__type &)
__valid_rangeβ two safe local iterators. signature:
template<typename _Iterator, typename _Sequence> bool __valid_range
(const _Safe_local_iterator< _Iterator, _Sequence > &, const
_Safe_local_iterator< _Iterator, _Sequence > &)
__valid_rangeβ and the last one, cut off in the original, bestie. signature:
template<typename _Iterator, typename _Sequence> bool __valid_range
okay so we're literally resuming mid-declaration π the last signature got chopped and this is its tail β then every single remaining decl in the list, verbatim, no edits, no notes, no cap:
(const _Safe_local_iterator< _Iterator, _Sequence > &, const _Safe_local_iterator< _Iterator, _Sequence > &, typename _Distance_traits< _Iterator >::__type &)
template<typename _Iterator, typename _UContainer> bool __valid_range (const _Safe_local_iterator< _Iterator, _UContainer > &__first, const _Safe_local_iterator< _Iterator, _UContainer > &__last)
template<typename _Iterator, typename _UContainer> bool __valid_range (const _Safe_local_iterator< _Iterator, _UContainer > &__first, const _Safe_local_iterator< _Iterator, _UContainer > &__last, typename _Distance_traits< _Iterator >::__type &__dist_info)
template<typename _Iterator> constexpr bool __valid_range (const std::move_iterator< _Iterator > &__first, const std::move_iterator< _Iterator > &__last, typename _Distance_traits< _Iterator >::__type &__dist)
template<typename _Iterator> constexpr bool __valid_range (const std::reverse_iterator< _Iterator > &__first, const std::reverse_iterator< _Iterator > &__last, typename _Distance_traits< _Iterator >::__type &__dist)
template<typename _InputIterator> constexpr bool __valid_range_aux (_InputIterator __first, _InputIterator __last, std::input_iterator_tag)
template<typename _InputIterator> constexpr bool __valid_range_aux (_InputIterator __first, _InputIterator __last, std::random_access_iterator_tag)
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)
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> 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> 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 _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, _CharT __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, 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> 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> 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> 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> void swap (basic_string< _CharT, _Traits, _Allocator > &__lhs, basic_string< _CharT, _Traits, _Allocator > &__rhs)
and that's the whole list, we ate β¨
π Detailed Description π
GNU debug classes for public use. that's literally the entire summary bestie, no notes π
π Typedef Documentation π
typedef basic_string<char16_t> __gnu_debug::u16stringβ a string ofchar16_t. yes, it's giving exactly what it says on the tin πΈtypedef basic_string<char32_t> __gnu_debug::u32stringβ a string ofchar32_t. same energy, bigger chars π¦
π¦ Enumeration Type Documentation π¦
enum __gnu_debug::_Distance_precisionβ the precision you're able to calculate the distance between two iterators with. that's the whole vibe π₯
π Function Documentation π
β __base β
template<typename _Iterator> _Iterator __gnu_debug::__base (_Iterator __it)
[inline],[constexpr]
okay so this is a lil helper that pulls the base iterator out of a random access safe iterator, and the whole reason it exists is to keep debug mode from tanking your performance. it's only for random access iterators tho, because that's literally the only iterator category where you can actually check the iterators' order inside the __valid_range function β and you get to do that thanks to the < operator. iykyk π
Referenced by __gnu_debug::_Safe_iterator< _Base_iterator, map >::_M_before_dereferenceable().
β __check_singular β
template<typename _Tp> bool __gnu_debug::__check_singular (_Tp *const & __ptr)
[inline],[constexpr]
non-NULL pointers are nonsingular. that's the rule, periodt π«Ά
β __check_singular_aux β
bool __gnu_debug::__check_singular_aux (const _Safe_iterator_base * __x)
[inline]
iterators that derive from _Safe_iterator_base can be figured out as singular or non-singular. detective work but make it template π
References __gnu_debug::_Safe_iterator_base::_M_singular().
β __check_string (the one with a length) β
template<typename _CharT, typename _Integer> const _CharT * __gnu_debug::__check_string (const _CharT * __s, _Integer __n, const char * __file, unsigned int __line, const char * __function)
[inline]
checks that __s is non-NULL or __n == 0, and then hands you back __s. like a bouncer at the door but for pointers π
β __check_string (the one without a length) β
template<typename _CharT> const _CharT * __gnu_debug::__check_string (const _CharT * __s, const char * __file, unsigned int __line, const char * __function)
[inline]
checks that __s is non-NULL, and then returns __s. short, sweet, iconic β¨
β __foreign_iterator_aux2 (different container types) β
template<typename _Iterator, typename _Sequence, typename _Category, typename _OtherIterator, typename _OtherSequence, typename _OtherCategory> bool __gnu_debug::__foreign_iterator_aux2 (const _Safe_iterator< _Iterator, _Sequence, _Category > & , const _Safe_iterator< _OtherIterator, _OtherSequence, _OtherCategory > & , const _Safe_iterator< _OtherIterator, _OtherSequence, _OtherCategory > & )
[inline]
handles debug iterators that come from different types of container. cross-container situations, we love to see it π
β __foreign_iterator_aux2 (same container type) β
template<typename _Iterator, typename _Sequence, typename _Category, typename _OtherIterator> bool __gnu_debug::__foreign_iterator_aux2 (const _Safe_iterator< _Iterator, _Sequence, _Category > & __it, const _Safe_iterator< _OtherIterator, _Sequence, _Category > & __other, const _Safe_iterator< _OtherIterator, _Sequence, _Category > & )
[inline]
handles debug iterators coming from the same type of container. same container, different iterator, we vibe π
β __get_distance β
template<typename _Iterator> _Distance_traits< _Iterator >::__type __gnu_debug::__get_distance (_Iterator __lhs, _Iterator __rhs, std::random_access_iterator_tag )
[inline],[constexpr]
figures out the distance between two iterators, with some known precision. no guessing games, just known precision energy πΈ
References std::make_pair().
β __valid_range (safe iterators) β
template<typename _Iterator, typename _Sequence, typename _Category> bool __gnu_debug::__valid_range (const _Safe_iterator< _Iterator, _Sequence, _Category > & __first, const _Safe_iterator< _Iterator, _Sequence, _Category > & __last, typename _Distance_traits< _Iterator >::__type & __dist)
[inline],[constexpr]
safe iterators know how to check whether they form a valid range. they're self-aware, honestly π
β __valid_range (safe local iterators) β
template<typename _Iterator, typename _UContainer> bool __gnu_debug::__valid_range (const _Safe_local_iterator< _Iterator, _UContainer > & __first, const _Safe_local_iterator< _Iterator, _UContainer > & __last, typename _Distance_traits< _Iterator >::__type & __dist_info)
[inline]
safe local iterators also know how to check whether they form a valid range. local edition, same self-awareness π
π«Ά Author π«Ά
this whole page was generated automatically by Doxygen for libstdc++ from the source code β nobody hand-wrote it, it just spawned like that, main character energy π
okay that's the whole page bestie, we made it π the footer's got libstdc++ and the page name __gnu_debug(3) on it, dated whenever Doxygen last ran its little build, and that's your source + version + date situation. mwah ππ
π¦ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- centos-stream 10: gcc-toolset-16-libstdc++-docs 16.2.1-1.3.el10 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms