Scroll to navigation

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

NAME

std::filesystem::path::iterator - An iterator for the components of a path.

SYNOPSIS

#include <filesystem>

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

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

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

Detailed Description

An iterator for the components of a path.

Definition at line 914 of file bits/filesystem.

Member Typedef Documentation

using std::filesystem::path::iterator::difference_type = std::ptrdiff_t

Definition at line 917 of file bits/filesystem.

using std::filesystem::path::iterator::iterator_category = std::bidirectional_iterator_tag

Definition at line 921 of file bits/filesystem.

using std::filesystem::path::iterator::pointer = const path*

Definition at line 920 of file bits/filesystem.

using std::filesystem::path::iterator::reference = const path&

Definition at line 919 of file bits/filesystem.

using std::filesystem::path::iterator::value_type = path

Definition at line 918 of file bits/filesystem.

Constructor & Destructor Documentation

std::filesystem::path::iterator::iterator () [inline], [noexcept]

Definition at line 923 of file bits/filesystem.

Member Function Documentation

iterator std::filesystem::path::iterator::operator++ (int) [inline], [noexcept]

Definition at line 933 of file bits/filesystem.

iterator std::filesystem::path::iterator::operator-- (int) [inline], [noexcept]

Definition at line 938 of file bits/filesystem.

pointer std::filesystem::path::iterator::operator-> () const [inline], [noexcept]

Definition at line 929 of file bits/filesystem.

Friends And Related Function Documentation

void __path_iter_advance (iterator & __i, difference_type __n) [friend]

Definition at line 971 of file bits/filesystem.

difference_type __path_iter_distance (const iterator & __first, const iterator & __last) [friend]

Definition at line 957 of file bits/filesystem.

bool operator!= (const iterator & __lhs, const iterator & __rhs) [friend]

Definition at line 946 of file bits/filesystem.

bool operator== (const iterator & __lhs, const iterator & __rhs) [friend]

Definition at line 942 of file bits/filesystem.

friend class path [friend]

Definition at line 950 of file bits/filesystem.

Author

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

Sun Jan 8 2023 libstdc++