STD::FILESYSTEM::PATH_ITERATOR(3)

πŸ“¦
version 13.3.1 Β· 2 versions
, in centos-stream 9

πŸ¦‹ std::filesystem::path::iterator β€” libstdc++ Library Functions Manual, section 3 πŸ¦‹

okay bestie, this is the page for the path-component iterator, and it is lowkey iconic. C++17 energy, no cap. πŸ’…

🌸 NAME 🌸

std::filesystem::path::iterator β€” an iterator for the components of a path. periodt. ✨

✨ SYNOPSIS ✨

πŸ’– Public Types πŸ’–

using difference_type = std::ptrdiff_t
using iterator_category = std::bidirectional_iterator_tag
using pointer = const path *
using reference = const path &
using value_type = path

that’s the whole type lineup, bestie β€” difference_type, iterator_category, pointer, reference, and value_type, all sitting pretty. πŸŽ€

πŸ’… Public Member Functions πŸ’…

iterator (const iterator &)=default
reference operator* () const noexcept
iterator & operator++ () noexcept
iterator operator++ (int) noexcept
iterator & operator-- () noexcept
iterator operator-- (int) noexcept
pointer operator-> () const noexcept
iterator & operator= (const iterator &)=default

copy construction and assignment are both =default, and the dereference, arrow, pre/post increment, and pre/post decrement operators are all noexcept where shown. slay. πŸ”₯

🫢 Friends 🫢

void __path_iter_advance (iterator &__i, difference_type __n) noexcept
difference_type __path_iter_distance (const iterator &__first, const iterator &__last) noexcept
bool operator!= (const iterator &__lhs, const iterator &__rhs) noexcept
bool operator== (const iterator &__lhs, const iterator &__rhs) noexcept
class path

friendship goals, fr fr β€” __path_iter_advance, __path_iter_distance, operator!=, operator==, and the friend class path. πŸ’œ

πŸ¦‹ Detailed Description πŸ¦‹

An iterator for the components of a path.

that’s the main character summary, bestie. it’s an iterator for the components of a path β€” and that’s the whole vibe. no extra lore, no side quests. 🌈

⭐ Since ⭐

C++17. it’s been serving since C++17, and it ate. πŸ‘‘

πŸ’Œ Author πŸ’Œ

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


okay that’s the page! footer tea: source/version is libstdc++, and the date is Fri Feb 14 2025. mwah, bestie πŸ’‹πŸŽ€

πŸ“¦ where this page comes from