__GNU_PBDS::DETAIL::BIN_SEARCH_TREE_CONST_IT_(3cxx)
π NAME
__gnu_pbds::detail::bin_search_tree_const_it_< Node_Pointer, Value_Type, Pointer, Const_Pointer, Reference, Const_Reference, Is_Forward_Iterator, _Alloc > β bestie, this is the Const iterator, straight off the 3cxx manual shelf β¨
πΈ SYNOPSIS
#include <point_iterators.hpp>
Inherited by __gnu_pbds::detail::bin_search_tree_it_< Node_Pointer, Value_Type, Pointer, Const_Pointer, Reference, Const_Reference, Is_Forward_Iterator, _Alloc > β so like, the non-const one literally descends from this icon π
π Public Types
typedef Const_Pointer const_pointerβ the const-flavoured pointer type, it's giving "look but don't touch" πtypedef Const_Reference const_referenceβ same energy but a reference, no captypedef _Alloc::difference_type difference_typeβ the difference type, borrowed straight from_Alloctypedef std::bidirectional_iterator_tag iterator_categoryβ okay so it's a bidirectional iterator, meaning it walks both ways, main character energy πΆββοΈβοΈπΆββοΈtypedef Pointer pointerβ the pointer type, periodttypedef Reference referenceβ the reference type, iconictypedef Value_Type value_typeβ the value type and yes it's literally justValue_Type
π¦ Public Member Functions
bin_search_tree_const_it_ (const bin_search_tree_const_it_< Node_Pointer, Value_Type, Pointer, Const_Pointer, Reference, Const_Reference, !Is_Forward_Iterator, _Alloc > &other)β converting constructor from the same iterator but with the forward-iterator flag flipped πbin_search_tree_const_it_ (const Node_Pointer p_nd=0)β constructor that takes a node pointer, and it defaults to0if you don't hand it one π«Άbool operator!= (const bin_search_tree_const_it_< Node_Pointer, Value_Type, Pointer, Const_Pointer, Reference, Const_Reference, !Is_Forward_Iterator, _Alloc > &other) constβ not-equal against the flipped-flag versionbool operator!= (const bin_search_tree_const_it_< Node_Pointer, Value_Type, Pointer, Const_Pointer, Reference, Const_Reference, Is_Forward_Iterator, _Alloc > &other) constβ not-equal against the matching versionconst_reference operator* () constβ dereference, gives you aconst_referenceβbin_search_tree_const_it_< Node_Pointer, Value_Type, Pointer, Const_Pointer, Reference, Const_Reference, Is_Forward_Iterator, _Alloc > & operator++ ()β prefix increment, returns a reference to yourself (humble? never π )bin_search_tree_const_it_< Node_Pointer, Value_Type, Pointer, Const_Pointer, Reference, Const_Reference, Is_Forward_Iterator, _Alloc > operator++ (int)β postfix increment, returns a copy insteadbin_search_tree_const_it_< Node_Pointer, Value_Type, Pointer, Const_Pointer, Reference, Const_Reference, Is_Forward_Iterator, _Alloc > & operator-- ()β prefix decrement, back it up bestiebin_search_tree_const_it_< Node_Pointer, Value_Type, Pointer, Const_Pointer, Reference, Const_Reference, Is_Forward_Iterator, _Alloc > operator-- (int)β postfix decrement, copy editionconst_pointer operator-> () constβ arrow operator, gives you aconst_pointerbin_search_tree_const_it_< Node_Pointer, Value_Type, Pointer, Const_Pointer, Reference, Const_Reference, Is_Forward_Iterator, _Alloc > & operator= (const bin_search_tree_const_it_< Node_Pointer, Value_Type, Pointer, Const_Pointer, Reference, Const_Reference, !Is_Forward_Iterator, _Alloc > &other)β assignment from the flipped-flag twinbin_search_tree_const_it_< Node_Pointer, Value_Type, Pointer, Const_Pointer, Reference, Const_Reference, Is_Forward_Iterator, _Alloc > & operator= (const bin_search_tree_const_it_< Node_Pointer, Value_Type, Pointer, Const_Pointer, Reference, Const_Reference, Is_Forward_Iterator, _Alloc > &other)β assignment from the exact same typebool operator== (const bin_search_tree_const_it_< Node_Pointer, Value_Type, Pointer, Const_Pointer, Reference, Const_Reference, !Is_Forward_Iterator, _Alloc > &other) constβ equality check, flipped-flag flavourbool operator== (const bin_search_tree_const_it_< Node_Pointer, Value_Type, Pointer, Const_Pointer, Reference, Const_Reference, Is_Forward_Iterator, _Alloc > &other) constβ equality check, matching-flag flavour
Not me noticing that half these signatures say!Is_Forward_Iteratorand the other half sayIs_Forward_Iteratorβ that's not a typo bestie, that's literally what's written ππ
β Public Attributes
Node_Pointer m_p_ndβ the node pointer, sitting right there in public, living its truth π
π§ Protected Member Functions
void dec (false_type)β decrement helper,false_typeoverloadvoid dec (true_type)β decrement helper,true_typeoverloadvoid inc (false_type)β increment helper,false_typeoverloadvoid inc (true_type)β increment helper,true_typeoverload
These four are protected, so they're for the family only, not for you ππ
π Detailed Description
template<typename Node_Pointer, typename Value_Type, typename Pointer,
typename Const_Pointer, typename Reference, typename Const_Reference,
bool Is_Forward_Iterator, typename _Alloc>
class __gnu_pbds::detail::bin_search_tree_const_it_< Node_Pointer,
Value_Type, Pointer, Const_Pointer, Reference, Const_Reference,
Is_Forward_Iterator, _Alloc >"Const iterator.
That's the whole template signature, verbatim, and yes the class description is literally just "Const iterator." β short, sweet, ate π
π Author
Generated automatically by Doxygen for libstdc++ from the source code. So nobody hand-wrote this one, it's a bot's magnum opus π€β¨
Okay that's the whole page, bestie! This was the 3cxx manual for __gnu_pbds::detail::bin_search_tree_const_it_< Node_Pointer, Value_Type, Pointer, Const_Pointer, Reference, Const_Reference, Is_Forward_Iterator, _Alloc >, auto-generated by Doxygen for libstdc++ β go take a vibe check on the rest of the collection, ily, bye π«Άππ
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms