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 literallystd::bidirectional_iterator_tag.using pointer = const path *β pointer type isconst path *.using reference = const path &β reference type isconst path &.using value_type = pathβ value type ispath.
π«Ά Public Member Functions π«Ά
iterator (const iterator &)=defaultβ copy constructor, defaulted.reference operator* () const noexceptβ dereference operator,noexcept.iterator & operator++ () noexceptβ pre-increment, returnsiterator &,noexcept.iterator operator++ (int) noexceptβ post-increment, returnsiterator,noexcept.iterator & operator-- () noexceptβ pre-decrement, returnsiterator &,noexcept.iterator operator-- (int) noexceptβ post-decrement, returnsiterator,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βpathis 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
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms