__GNU_PBDS::DETAIL::PAT_TRIE_BASE__NODE_CITER(3)

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

πŸ’– NAME πŸ’–

__gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc > β€” Node const iterator. bestie, it's literally the const-iterator for a PAT trie node, okurrr ✨


🌸 SYNOPSIS 🌸

#include <pat_trie_base.hpp>

Inherited by __gnu_pbds::detail::pat_trie_base::_Node_iter< Node, Leaf, Head, Inode, _CIterator, Iterator, _Alloc >. πŸ‘‘

✨ Public Types ✨

  • typedef value_type const_reference
  • typedef trivial_iterator_difference_type difference_type
  • typedef trivial_iterator_tag iterator_category
  • typedef rebind_traits< _Alloc, metadata_type >::const_reference metadata_const_reference β€” const metadata reference type, no cap πŸŽ€
  • typedef Node::metadata_type metadata_type β€” the metadata type, periodt
  • typedef value_type reference
  • typedef _Alloc::size_type size_type
  • typedef _CIterator value_type

πŸ¦‹ Public Member Functions πŸ¦‹

  • _Node_citer (node_pointer p_nd=0, a_const_pointer p_traits=0)
  • _Node_citer get_child (size_type i) const β€” returns a __const node __iterator to the corresponding node's i-th child πŸ’…
  • metadata_const_reference get_metadata () const β€” metadata access, go get ur metadata
  • size_type num_children () const β€” returns the number of children in the corresponding node 🧚
  • bool operator!= (const _Node_citer &other) const β€” compares content (negatively) to a different iterator object
  • const_reference operator* () const β€” const access; returns the __const iterator* associated with the current leaf 🌸
  • bool operator== (const _Node_citer &other) const β€” compares content to a different iterator object
  • std::pair< a_const_iterator, a_const_iterator > valid_prefix () const β€” subtree valid prefix ⭐

πŸ’œ Public Attributes πŸ’œ

  • node_pointer m_p_nd
  • a_const_pointer m_p_traits

🌈 Protected Types 🌈

  • typedef Node::a_const_iterator a_const_iterator
  • typedef Node::a_const_pointer a_const_pointer
  • typedef rebind_traits< _Alloc, Inode >::const_pointer inode_const_pointer
  • typedef rebind_traits< _Alloc, Inode >::pointer inode_pointer
  • typedef rebind_traits< _Alloc, Leaf >::const_pointer leaf_const_pointer
  • typedef rebind_traits< _Alloc, Leaf >::pointer leaf_pointer
  • typedef rebind_traits< _Alloc, Node >::pointer node_pointer

πŸ‘‘ Detailed Description πŸ‘‘

okay so it's a template, and here's the whole vibe:

template<typename Node, typename Leaf, typename Head, typename Inode,
    typename _CIterator, typename Iterator, typename _Alloc>
class __gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head,
Inode, _CIterator, Iterator, _Alloc >

"Node const iterator." that's it, that's the whole description, and honestly? iconic. πŸ’…


πŸŽ€ Member Typedef Documentation πŸŽ€

metadata_const_reference

template<typename Node, typename Leaf, typename Head, typename Inode,
    typename _CIterator, typename Iterator, typename _Alloc>
typedef rebind_traits<_Alloc,metadata_type>::const_reference
__gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode,
_CIterator, Iterator, _Alloc >::metadata_const_reference

Const metadata reference type. 🫢

metadata_type

template<typename Node, typename Leaf, typename Head, typename Inode,
    typename _CIterator, typename Iterator, typename _Alloc>
typedef Node::metadata_type
__gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode,
_CIterator, Iterator, _Alloc >::metadata_type

Metadata type. fr fr.


πŸ¦„ Member Function Documentation πŸ¦„

get_child

template<typename Node, typename Leaf, typename Head, typename Inode,
    typename _CIterator, typename Iterator, typename _Alloc>
_Node_citer
__gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode,
_CIterator, Iterator, _Alloc >::get_child (size_type i) const [inline]

Returns a __const node __iterator to the corresponding node's i-th child. yes bestie, hand me the i-th child ✨

get_metadata

template<typename Node, typename Leaf, typename Head, typename Inode,
    typename _CIterator, typename Iterator, typename _Alloc>
metadata_const_reference
__gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode,
_CIterator, Iterator, _Alloc >::get_metadata () const [inline]

Metadata access. go off πŸ’–

num_children

template<typename Node, typename Leaf, typename Head, typename Inode,
    typename _CIterator, typename Iterator, typename _Alloc>
size_type
__gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode,
_CIterator, Iterator, _Alloc >::num_children () const [inline]

Returns the number of children in the corresponding node. 🌸

Referenced by __gnu_pbds::detail::pat_trie_base::_Node_citer< node, leaf, head, inode, const_iterator, iterator, _Alloc >::operator*().

operator!=

template<typename Node, typename Leaf, typename Head, typename Inode,
    typename _CIterator, typename Iterator, typename _Alloc>
bool
__gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode,
_CIterator, Iterator, _Alloc >::operator!= (const _Node_citer< Node,
Leaf, Head, Inode, _CIterator, Iterator, _Alloc > & other) const
[inline]

Compares content (negatively) to a different iterator object. it's giving "not the same, and we're saying it out loud" πŸ’€

operator*

template<typename Node, typename Leaf, typename Head, typename Inode,
    typename _CIterator, typename Iterator, typename _Alloc>
const_reference
__gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode,
_CIterator, Iterator, _Alloc >::operator* () const [inline]

Const access; returns the __const iterator* associated with the current leaf. πŸ“

operator==

template<typename Node, typename Leaf, typename Head, typename Inode,
    typename _CIterator, typename Iterator, typename _Alloc>
bool
__gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode,
_CIterator, Iterator, _Alloc >::operator== (const _Node_citer< Node,
Leaf, Head, Inode, _CIterator, Iterator, _Alloc > & other) const
[inline]

Compares content to a different iterator object. twin where have u been 🫢

valid_prefix

template<typename Node, typename Leaf, typename Head, typename Inode,
    typename _CIterator, typename Iterator, typename _Alloc>
std::pair< a_const_iterator, a_const_iterator >
__gnu_pbds::detail::pat_trie_base::_Node_citer< Node, Leaf, Head, Inode,
_CIterator, Iterator, _Alloc >::valid_prefix () const [inline]

Subtree valid prefix. slay 🌈


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for libstdc++ from the source code.


and that's the whole page bestie πŸŽ€ this one came out of libstdc++, and the manual name on the tin is __gnu_pbds...r, _Alloc >(3) β€” mwah, go read some source code, iykyk πŸ’…βœ¨
πŸ“¦ 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