Go to the source code of this file.
Defines | |
#define | _GLIBCXX_DEBUG_DEBUG_H 1 |
#define | _GLIBCXX_DEBUG_ASSERT(_Condition) |
#define | _GLIBCXX_DEBUG_PEDASSERT(_Condition) |
#define | __glibcxx_requires_cond(_Cond, _Msg) |
#define | __glibcxx_requires_valid_range(_First, _Last) |
#define | __glibcxx_requires_sorted(_First, _Last) |
#define | __glibcxx_requires_sorted_pred(_First, _Last, _Pred) |
#define | __glibcxx_requires_partitioned(_First, _Last, _Value) |
#define | __glibcxx_requires_partitioned_pred(_First, _Last, _Value, _Pred) |
#define | __glibcxx_requires_heap(_First, _Last) |
#define | __glibcxx_requires_heap_pred(_First, _Last, _Pred) |
#define | __glibcxx_requires_nonempty() |
#define | __glibcxx_requires_string(_String) |
#define | __glibcxx_requires_string_len(_String, _Len) |
#define | __glibcxx_requires_subscript(_N) |
#define __glibcxx_requires_cond | ( | _Cond, | |||
_Msg | ) |
Definition at line 102 of file debug.h.
Referenced by std::istreambuf_iterator< _CharT, _Traits >::operator *(), std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::operator *(), std::istreambuf_iterator< _CharT, _Traits >::operator++(), std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::operator++(), and std::ostream_iterator< _Tp, _CharT, _Traits >::operator=().
#define __glibcxx_requires_heap | ( | _First, | |||
_Last | ) |
#define __glibcxx_requires_heap_pred | ( | _First, | |||
_Last, | |||||
_Pred | ) |
Definition at line 109 of file debug.h.
Referenced by std::pop_heap(), std::push_heap(), and std::sort_heap().
#define __glibcxx_requires_nonempty | ( | ) |
Definition at line 110 of file debug.h.
Referenced by std::queue< _Tp, _Sequence >::back(), std::queue< _Tp, _Sequence >::front(), std::stack< _Tp, _Sequence >::pop(), std::priority_queue< _Tp, _Sequence, _Compare >::pop(), std::queue< _Tp, _Sequence >::pop(), std::stack< _Tp, _Sequence >::top(), and std::priority_queue< _Tp, _Sequence, _Compare >::top().
#define __glibcxx_requires_partitioned | ( | _First, | |||
_Last, | |||||
_Value | ) |
Definition at line 106 of file debug.h.
Referenced by std::binary_search(), std::equal_range(), std::lower_bound(), and std::upper_bound().
#define __glibcxx_requires_partitioned_pred | ( | _First, | |||
_Last, | |||||
_Value, | |||||
_Pred | ) |
Definition at line 107 of file debug.h.
Referenced by std::binary_search(), std::equal_range(), std::lower_bound(), and std::upper_bound().
#define __glibcxx_requires_sorted | ( | _First, | |||
_Last | ) |
Definition at line 104 of file debug.h.
Referenced by std::includes(), std::inplace_merge(), std::merge(), std::set_difference(), std::set_intersection(), std::set_symmetric_difference(), and std::set_union().
#define __glibcxx_requires_sorted_pred | ( | _First, | |||
_Last, | |||||
_Pred | ) |
Definition at line 105 of file debug.h.
Referenced by std::includes(), std::inplace_merge(), std::merge(), std::set_difference(), std::set_intersection(), std::set_symmetric_difference(), and std::set_union().
#define __glibcxx_requires_string | ( | _String | ) |
Definition at line 111 of file debug.h.
Referenced by __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::append(), std::basic_string< _CharT, _Traits, _Allocator >::append(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::assign(), std::basic_string< _CharT, _Traits, _Allocator >::assign(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::compare(), std::basic_string< _CharT, _Traits, _Alloc >::compare(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find(), std::basic_string< _CharT, _Traits, _Allocator >::find(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_first_not_of(), std::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_first_of(), std::basic_string< _CharT, _Traits, _Allocator >::find_first_of(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_last_not_of(), std::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_last_of(), std::basic_string< _CharT, _Traits, _Allocator >::find_last_of(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::insert(), std::basic_string< _CharT, _Traits, _Allocator >::insert(), __gnu_cxx::operator+(), std::operator+(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::replace(), std::basic_string< _CharT, _Traits, _Allocator >::replace(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::rfind(), and std::basic_string< _CharT, _Traits, _Allocator >::rfind().
#define __glibcxx_requires_string_len | ( | _String, | |||
_Len | ) |
Definition at line 112 of file debug.h.
Referenced by __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::append(), std::basic_string< _CharT, _Traits, _Alloc >::append(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::assign(), std::basic_string< _CharT, _Traits, _Alloc >::assign(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::compare(), std::basic_string< _CharT, _Traits, _Alloc >::compare(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::copy(), std::basic_string< _CharT, _Traits, _Alloc >::copy(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find(), std::basic_string< _CharT, _Traits, _Alloc >::find(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_first_not_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_first_not_of(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_first_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_first_of(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_last_not_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_last_not_of(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_last_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_last_of(), std::basic_string< _CharT, _Traits, _Alloc >::insert(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::replace(), std::basic_string< _CharT, _Traits, _Alloc >::replace(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::rfind(), and std::basic_string< _CharT, _Traits, _Alloc >::rfind().
#define __glibcxx_requires_subscript | ( | _N | ) |
#define __glibcxx_requires_valid_range | ( | _First, | |||
_Last | ) |
Definition at line 103 of file debug.h.
Referenced by std::accumulate(), std::adjacent_difference(), std::adjacent_find(), std::copy(), std::copy_backward(), std::count(), __gnu_cxx::count(), std::count_if(), __gnu_cxx::count_if(), std::equal(), std::fill(), std::find(), std::find_end(), std::find_first_of(), std::find_if(), std::for_each(), std::generate(), std::inner_product(), __gnu_cxx::is_heap(), __gnu_cxx::is_sorted(), std::lexicographical_compare(), __gnu_cxx::lexicographical_compare_3way(), std::make_heap(), std::max_element(), std::min_element(), std::mismatch(), std::next_permutation(), std::nth_element(), std::partial_sort(), std::partial_sort_copy(), std::partial_sum(), std::partition(), std::pop_heap(), std::prev_permutation(), std::priority_queue< _Tp, _Sequence, _Compare >::priority_queue(), std::push_heap(), __gnu_cxx::random_sample(), __gnu_cxx::random_sample_n(), std::random_shuffle(), std::remove(), std::remove_copy(), std::remove_copy_if(), std::remove_if(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::replace(), std::replace(), std::basic_string< _CharT, _Traits, _Allocator >::replace(), std::replace_copy(), std::replace_copy_if(), std::replace_if(), std::reverse(), std::reverse_copy(), std::rotate(), std::rotate_copy(), std::search(), std::search_n(), std::sort(), std::sort_heap(), std::stable_partition(), std::stable_sort(), std::swap_ranges(), std::transform(), std::unique(), and std::unique_copy().
#define _GLIBCXX_DEBUG_ASSERT | ( | _Condition | ) |
Macros used by the implementation outside of debug wrappers to verify certain properties. The __glibcxx_requires_xxx macros are merely wrappers around the __glibcxx_check_xxx wrappers when we are compiling with debug mode, but disappear when we are in release mode so that there is no checking performed in, e.g., the standard library algorithms.
Definition at line 100 of file debug.h.
Referenced by __gnu_debug::__check_string(), __gnu_debug::__check_valid_range(), std::valarray< _Tp >::max(), std::valarray< _Tp >::min(), std::auto_ptr< _Tp >::operator *(), std::tr1::shared_ptr< _Tp >::operator *(), std::auto_ptr< _Tp >::operator->(), std::tr1::shared_ptr< _Tp >::operator->(), std::valarray< _Tp >::operator=(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::operator[](), std::basic_string< _CharT, _Traits, _Allocator >::operator[](), std::tr1::shared_ptr< _Tp >::reset(), std::valarray< _Tp >::sum(), and std::valarray< _Tp >::valarray().
#define _GLIBCXX_DEBUG_PEDASSERT | ( | _Condition | ) |
Definition at line 101 of file debug.h.
Referenced by __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::erase(), std::basic_string< _CharT, _Traits, _Allocator >::erase(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::insert(), std::basic_string< _CharT, _Traits, _Allocator >::insert(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::operator[](), std::basic_string< _CharT, _Traits, _Allocator >::operator[](), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::replace(), and std::basic_string< _CharT, _Traits, _Allocator >::replace().