Files
2025-10-25 03:02:53 +03:00

3.1 KiB
Raw Permalink Blame History

[fs.path.itr]

31 Input/output library [input.output]

31.12 File systems [filesystems]

31.12.6 Class path [fs.class.path]

31.12.6.6 Iterators [fs.path.itr]

1

#

Path iterators iterate over the elements of the pathname in the generic format.

2

#

A path::iterator is a constant iterator meeting all the requirements of a bidirectional iterator except that, for dereferenceable iterators a and b of type path::iterator with a == b, there is no requirement that *a and *b are bound to the same object.

Its value_type is path.

3

#

Calling any non-const member function of a path object invalidates all iterators referring to elements of that object.

4

#

For the elements of the pathname in the generic format, the forward traversal order is as follows:

5

#

The backward traversal order is the reverse of forward traversal.

🔗

iterator begin() const;

6

#

Returns: An iterator for the first present element in the traversal list above.

If no elements are present, the end iterator.

🔗

iterator end() const;

7

#

Returns: The end iterator.