std::filesystem::path::iterator(3cxx)

πŸ’– NAME πŸ’–

okay so this is std::filesystem::path::iterator from the 3cxx manual, and it’s literally an iterator for the components of a path. That’s the whole name vibe, bestie β€” no cap. πŸ¦‹

✨ SYNOPSIS ✨

#include <filesystem>

πŸŽ€ Public Types πŸŽ€

  • using difference_type = std::ptrdiff_t β€” the difference type, periodt.
  • using iterator_category = std::bidirectional_iterator_tag β€” its iterator category is literally std::bidirectional_iterator_tag.
  • using pointer = const path * β€” pointer type is const path *.
  • using reference = const path & β€” reference type is const path &.
  • using value_type = path β€” value type is path.

🫢 Public Member Functions 🫢

  • iterator (const iterator &)=default β€” copy constructor, defaulted.
  • reference operator* () const noexcept β€” dereference operator, noexcept.
  • iterator & operator++ () noexcept β€” pre-increment, returns iterator &, noexcept.
  • iterator operator++ (int) noexcept β€” post-increment, returns iterator, noexcept.
  • iterator & operator-- () noexcept β€” pre-decrement, returns iterator &, noexcept.
  • iterator operator-- (int) noexcept β€” post-decrement, returns iterator, noexcept.
  • pointer operator-> () const noexcept β€” arrow operator, noexcept.
  • iterator & operator= (const iterator &)=default β€” copy assignment, defaulted.

πŸ¦‹ Friends πŸ¦‹

  • void __path_iter_advance (iterator &__i, difference_type __n) noexcept β€” friend helper named __path_iter_advance, noexcept.
  • difference_type __path_iter_distance (const iterator &__first, const iterator &__last) noexcept β€” friend helper named __path_iter_distance, noexcept.
  • bool operator!= (const iterator &__lhs, const iterator &__rhs) noexcept β€” not-equal comparison friend, noexcept.
  • bool operator== (const iterator &__lhs, const iterator &__rhs) noexcept β€” equal comparison friend, noexcept.
  • class path β€” path is a friend class.

🌸 Detailed Description 🌸

okay bestie, the detailed description is honestly iconic in its brevity:

An iterator for the components of a path.

⭐ Since ⭐

C++17. literally since C++17. ✨

πŸ‘‘ Author πŸ‘‘

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


okay bye bestie πŸ’– β€” footer deets: source/version libstdc is chillin’ with std::filesystem::path::iterator(3cxx) in the footer, and no date is printed there, so I’m not inventing one, periodt. slay responsibly 🫢

πŸ“¦ where this page comes from