---
name: "std::experimental::filesystem::path_iterator"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::experimental::filesystem::path_iterator"
---

# std::experimental::filesystem::path\_iterator(3cxx)

An iterator for the components of a path.

## NAME

std::experimental::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

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.

## Author

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