SC_AVLSET_ITERATOR(3)
π NAME π
sc::AVLSet< K >::iterator β bestie, you've landed in the Library Functions Manual (section 3), and this is the iterator that lives inside the sc::AVLSet< K > template. It's a whole vibe of its own, so let's get into it. π¦
β¨ SYNOPSIS β¨
π Public Member Functions π
Ok so here's the full roster, no cuts, no skips, exactly as written:
iterator (const EAVLMMap< K, AVLMapNode< K, int > > *m, const
AVLMapNode< K, int > *n)
iterator (const eavl_typename AVLSet< K >::iterator &i)
void operator++ ()
void operator++ (int)
int operator== (const eavl_typename AVLSet< K >::iterator &i) const
int operator!= (const eavl_typename AVLSet< K >::iterator &i) const
void operator= (const eavl_typename AVLSet< K >::iterator &i)
const K & key () const
const K & operator* () const
Now let's go one by one, because every single one of these is here and every single one of these gets its moment π :
iterator (const EAVLMMap< K, AVLMapNode< K, int > > *m, const AVLMapNode< K, int > *n)β the constructor that takes two pointers: anEAVLMMap< K, AVLMapNode< K, int > > *called m, and anAVLMapNode< K, int > *called n. That's the whole signature, fr fr.iterator (const eavl_typename AVLSet< K >::iterator &i)β the copy-ish constructor, taking a reference to aneavl_typename AVLSet< K >::iteratornamed i.void operator++ ()β the pre-increment. No args, returnsvoid. That's it, that's the whole thing.void operator++ (int)β the post-increment, the one with the mysteryintin the parens. Also returnsvoid, bestie.int operator== (const eavl_typename AVLSet< K >::iterator &i) constβ the equality comparison against anothereavl_typename AVLSet< K >::iteratornamed i. It'sconst, and it hands you back anint.int operator!= (const eavl_typename AVLSet< K >::iterator &i) constβ same energy, but it's the not-equal one. Alsoconst, also returnsint, also takes thateavl_typename AVLSet< K >::iterator &i.void operator= (const eavl_typename AVLSet< K >::iterator &i)β the assignment operator, takes theeavl_typename AVLSet< K >::iterator &ireference, returnsvoid.const K & key () constβ no arguments, it'sconst, and it gives you back aconst K &.const K & operator* () constβ the dereference operator. No arguments,const, and it also returns aconst K &.
Not me listing all nine of these with the exact types intact π β that's the assignment, and we do not skip a single one on this page. Periodt.
π Author π
Generated automatically by Doxygen for MPQC from the source code. Iconic behaviour from a doc generator, honestly. π
And that's the whole page, bestie β no notes, no crumbs left behind. π«Ά This lil' legend comes to you courtesy of MPQC, Version 2.3.1, so big ups to the source code for making it happen. Go forth and iterate. π§β¨
π¦ where this page comes from
- fedora 43: mpqc-devel 2.3.1-65.fc43 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- fedora 43: mpqc-devel 2.3.1-65.fc43 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- ubuntu noble: libsc-doc 2.3.1-22build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms