sc::AVLMap...::iterator(3)

πŸ“¦
version 2.3.1 Β· 4 versions
, in fedora 43, ubuntu noble

✨ NAME ✨

sc::AVLMap< K, T >::iterator β€” bestie, this is the iterator type that lives inside sc::AVLMap, and it's giving main character energy in the Library Functions Manual πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

πŸ’… Public Member Functions πŸ’…

iterator (const EAVLMMap< K, AVLMapNode< K, T > > *m, AVLMapNode< K, T > *n)
iterator (const eavl_typename AVLMap< K, T >::iterator &i)
void operator++ ()
void operator++ (int)
int operator== (const eavl_typename AVLMap< K, T >::iterator &i) const
int operator!= (const eavl_typename AVLMap< K, T >::iterator &i) const
void operator= (const eavl_typename AVLMap< K, T >::iterator &i)
const K & key () const
T & data ()

okay so let's go through this lil roster one by one, no skipping, because every single one of these is doing something 🫢

  • iterator (const EAVLMMap< K, AVLMapNode< K, T > > *m, AVLMapNode< K, T > *n) β€” the constructor that takes a pointer to an EAVLMMap (the one holding AVLMapNode< K, T >s) plus a pointer to an AVLMapNode< K, T >. Two args, zero drama ✨
  • iterator (const eavl_typename AVLMap< K, T >::iterator &i) β€” the copy-ish constructor: you hand it a const reference to another eavl_typename AVLMap< K, T >::iterator and it does its thing. Yes, eavl_typename is really spelled like that, and no, we are not editing it πŸ’€
  • void operator++ () β€” the prefix increment operator. Returns void. That's it, that's the whole vibe.
  • void operator++ (int) β€” the same increment operator but with that little int in the parens. Returns void too. You know the one πŸ‘‘
  • int operator== (const eavl_typename AVLMap< K, T >::iterator &i) const β€” equality check against another const eavl_typename AVLMap< K, T >::iterator &i. Comes back as an int, and it's marked const, so it's on its best behaviour 🌸
  • int operator!= (const eavl_typename AVLMap< K, T >::iterator &i) const β€” the not-equal version of the above. Same argument, same int return, same const. Iconic, honestly.
  • void operator= (const eavl_typename AVLMap< K, T >::iterator &i) β€” assignment. Takes a const reference to another one of these iterators, gives you back void. Slay.
  • const K & key () const β€” hands you a const K &. It's const-qualified, so calling it won't mess with anything. We love a safe queen πŸŽ€
  • T & data () β€” hands you a plain old T &. Not const. Just saying πŸ“

🌈 Author 🌈

Generated automatically by Doxygen for MPQC from the source code. Not a human, not a girlboss, just a documentation generator doing its little automated thing πŸ€–βœ¨


and that's the whole page, bestie πŸ’œ that was MPQC, Version 2.3.1, page sc::AVLMap...::iterator(3) β€” thank u for coming to my TED talk, now go iterate something πŸ”₯πŸ¦‹

πŸ“¦ where this page comes from