STD::__DETAIL::_NODE_CONST_ITERATOR(3cxx)

πŸ’… NAME πŸ’…

std::__detail::_Node_const_iterator< _Value, __constant_iterators, __cache > β€” bestie, this is the Node const_iterators, and their whole entire job is iterating through all the hashtable. no cap. 🫢


✨ SYNOPSIS ✨

#include <hashtable_policy.h>

It Inherits std::__detail::_Node_iterator_base< _Value, __cache >. iconic behaviour, honestly. πŸ‘‘


πŸŽ€ Public Types πŸŽ€

  • typedef std::ptrdiff_t difference_type β€” the difference type, for when you're measuring the gap between two of these. πŸ’«
  • typedef std::forward_iterator_tag iterator_category β€” it's tagged as a forward iterator. the way it just is a forward iterator. 🌸
  • typedef const _Value * pointer β€” a pointer to a const _Value. note the const, she's committed to it. πŸ”’
  • typedef const _Value & reference β€” and a reference to a const _Value. same energy. ✨
  • typedef _Value value_type β€” the _Value itself, unadorned. the main character. πŸ‘‘
  • typedef std::forward_iterator_tag iterator_category β€” wait, no, that was already up there. one entry only, don't come for me. πŸ™ˆ

(okay actually the list is exactly five, here it is again clean:)

  • typedef std::ptrdiff_t difference_type
  • typedef std::forward_iterator_tag iterator_category
  • typedef const _Value * pointer
  • typedef const _Value & reference
  • typedef _Value value_type

πŸ¦‹ Public Member Functions πŸ¦‹

  • _Node_const_iterator (__node_type *__p) noexcept β€” build one of these from a node pointer. and it's noexcept, so it's literally not gonna throw at you. πŸ’…
  • _Node_const_iterator (const _Node_iterator< _Value, __constant_iterators, __cache > &__x) noexcept β€” and here's the glow-up conversion: build one from a _Node_iterator of the matching _Value, __constant_iterators and __cache. also noexcept. πŸ”₯
  • void _M_incr () noexcept β€” the internal little step-forward helper. noexcept, obviously. 🧚
  • reference operator* () const noexcept β€” dereference her, get your reference out. const, noexcept. πŸ“
  • _Node_const_iterator & operator++ () noexcept β€” pre-increment, returns a reference to yourself. noexcept. ⭐
  • _Node_const_iterator operator++ (int) noexcept β€” post-increment, takes an int and hands back a copy. noexcept. πŸ¦‹
  • pointer operator-> () const noexcept β€” arrow operator, gives you the pointer. const, noexcept. 🌈

🌸 Public Attributes 🌸

  • __node_type * _M_cur β€” the current node pointer, just vibing out in the open as a public attribute. πŸ’œ

🌈 Detailed Description 🌈

template<typename _Value, bool __constant_iterators, bool __cache>
    struct std::__detail::_Node_const_iterator< _Value,
    __constant_iterators, __cache >
"Node const_iterators, used to iterate through all the hashtable.

that's the whole description. short, sweet, ate. πŸ’–


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. not a human, not a girlie, just a doc generator doing its thing. πŸ€–βœ¨


lowkey reminder bestie: this page is libstdc++ and it lives in section 3cxx of the manual. that's the whole footer vibe β€” no date drama, just the library and the section. mwah. πŸ’…πŸŽ€πŸ«Ά
πŸ“¦ where this page comes from