__GNU_PBDS::DETAIL::BIN_SEARCH_TREE_CONST_NODE_IT_(3)

πŸ“¦
version 16.2.1+r23+gd564253eb6c8 Β· 6 versions
, in arch rolling, fedora 44

πŸ¦‹ 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 __const reference 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 yes p_nd defaults to 0.
  • bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > get_l_child () const β€” returns the __const node 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 __const node 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 __const reference 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