std::filesyste..._iterator_proxy(3cxx)

πŸ’– NAME πŸ’–

std::filesystem::__directory_iterator_proxy β€” bestie, it's the lil proxy that gets handed back when you post-increment a directory iterator. That's it, that's the job. πŸ‘‘

This page lives in the 3cxx manual, so like… C++ library docs, iykyk.


✨ SYNOPSIS ✨

#include <fs_dir.h>

🌸 Public Member Functions 🌸

  • directory_entry operator* () &&noexcept β€” rvalue version, gives you a directory_entry back, and it's noexcept, so she's chill, no surprises.
  • const directory_entry & operator* () const &noexcept β€” lvalue version, hands back a const directory_entry &, also noexcept. Reference vibes only, no copying.

🫢 Friends 🫢

These two get to hang out in the group chat:

  • class directory_iterator
  • class recursive_directory_iterator

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so real talk: this thing is a proxy returned by post-increment on directory iterators. That's the whole lore. πŸ’…

When you do the post-increment thing on a directory iterator, you don't get the entry directly β€” you get this lil cutie, and then she dereferences into the actual entry for you. Lowkey iconic, highkey doing the most behind the scenes so your code stays cute. ✨


πŸŽ€ AUTHOR πŸŽ€

Generated automatically by Doxygen for libstdc++ from the source code. Not a human author moment, just the machine doing her thing. πŸ€–πŸ’–


No cap, every single detail above is straight from the source β€” don't @ me, the compiler will. 😭

That's the whole page, bestie. Docs courtesy of libstdc++, auto-generated by Doxygen. Go forth and iterate. πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from