__GNU_PBDS::DETAIL::BIN_SEARCH_TREE_CONST_NODE_IT_(3)
π¦ NAME
okay so bestie, meet __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > β she's a const node iterator, and she's lowkey the main character of this whole page. This is the libstdc++ manual, and we're going through it together, no skips, no cap π
β¨ SYNOPSIS β¨
first things first, you gotta pull her in:
#include <node_iterators.hpp>
and heads up β she's inherited by __gnu_pbds::detail::bin_search_tree_node_it_< Node, Const_Iterator, Iterator, _Alloc >. so that one is literally her whole vibe, she's the const blueprint π
π Public Types
const_referenceβtypedef Const_Iteratorβ this is the iterator's__constreference type.difference_typeβtypedef trivial_iterator_difference_typeβ the difference type, yes ma'am.iterator_categoryβtypedef trivial_iterator_tagβ her category π·οΈmetadata_const_referenceβtypedef rebind_traits< _Alloc, metadata_type >::const_referenceβ const metadata reference type.metadata_typeβtypedef Node::metadata_typeβ metadata type.referenceβtypedef Const_Iteratorβ the iterator's reference type.value_typeβtypedef Const_Iteratorβ the iterator's value type.
π Public Member Functions
bin_search_tree_const_node_it_ (const node_pointer p_nd=0)β constructor, and yesp_nddefaults to0.bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > get_l_child () constβ returns the__constnode iterator associated with the left node πΈmetadata_const_reference get_metadata () constβ metadata access, come get your metadata.bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > get_r_child () constβ returns the__constnode iterator associated with the right node πΈbool operator!= (const bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > &other) constβ compares (negatively) to a different iterator object. yeah, she's a hater, but politely.const_reference operator* () constβ access. that's it, that's the whole description, she's mysterious like that πbool operator== (const bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > &other) constβ compares to a different iterator object.
π Public Attributes
node_pointer m_p_ndβ the node pointer, just sitting there, iconic.
π Detailed Description
template<typename Node, class Const_Iterator, class Iterator, typename _Alloc>
class __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >"Const node iterator.
so yeah, const node iterator. that's her. that's the whole thing. periodt β¨
π Member Typedef Documentation
every single one, in order, because we do not skip:
template<typename Node, class Const_Iterator, class Iterator, typename _Alloc>βtypedef Const_Iterator __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::const_referenceβ iterator's__constreference type πtemplate<typename Node, class Const_Iterator, class Iterator, typename _Alloc>βtypedef trivial_iterator_difference_type __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::difference_typeβ difference type.template<typename Node, class Const_Iterator, class Iterator, typename _Alloc>βtypedef trivial_iterator_tag __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::iterator_categoryβ category.template<typename Node, class Const_Iterator, class Iterator, typename _Alloc>βtypedef rebind_traits<_Alloc,metadata_type>::const_reference __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::metadata_const_referenceβ const metadata reference type.template<typename Node, class Const_Iterator, class Iterator, typename _Alloc>βtypedef Node::metadata_type __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::metadata_typeβ metadata type.template<typename Node, class Const_Iterator, class Iterator, typename _Alloc>βtypedef Const_Iterator __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::referenceβ iterator's reference type.template<typename Node, class Const_Iterator, class Iterator, typename _Alloc>βtypedef Const_Iterator __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::value_typeβ iterator's value type.
π₯ Member Function Documentation
get_l_child () const [inline]
template<typename Node, class Const_Iterator, class Iterator, typename _Alloc> β bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::get_l_child () const [inline]
Returns the __const node iterator associated with the left node π¦ (the left one, bestie, LEFT.)
get_metadata () const [inline]
template<typename Node, class Const_Iterator, class Iterator, typename _Alloc> β metadata_const_reference __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::get_metadata () const [inline]
Metadata access π
get_r_child () const [inline]
template<typename Node, class Const_Iterator, class Iterator, typename _Alloc> β bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::get_r_child () const [inline]
Returns the __const node iterator associated with the right node πΈ (and this one's the RIGHT one, obviously.)
operator!= (const bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > & other) const [inline]
template<typename Node, class Const_Iterator, class Iterator, typename _Alloc> β bool __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::operator!= (const bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > & other) const [inline]
Compares (negatively) to a different iterator object π
operator* () const [inline]
template<typename Node, class Const_Iterator, class Iterator, typename _Alloc> β const_reference __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::operator* () const [inline]
Access. one word. she's giving minimalism π
operator== (const bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > & other) const [inline]
template<typename Node, class Const_Iterator, class Iterator, typename _Alloc> β bool __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::operator== (const bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > & other) const [inline]
Compares to a different iterator object π
π§ Author
Generated automatically by Doxygen for libstdc++ from the source code.
ngl bestie, nobody hand-wrote this one β Doxygen did the whole thing from the source code for libstdc++, and the page footer says libstdc++ with __gnu_pbds..., _Alloc >(3) at the bottom. that's the version-and-date situation, fr fr. slay π«Άβ¨
π¦ 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
- 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