# std::filesystem::path::format

> C++ Atlas: `cppatlas.com/w/cpp/filesystem/path/format` | Source: https://en.cppreference.com/w/cpp/filesystem/path/format | Domain: Filesystem | Standards: C++17

Determines how string representations of pathnames are interpreted by the constructors of std::filesystem::path that accept strings.

## Official Specification Summary (cppreference)

```cpp
enum format {
    native_format,
    generic_format,
    auto_format
}; // (since C++17)
```

Determines how string representations of pathnames are interpreted by the constructors of `std::filesystem::path` that accept strings.

### Constants

**Name — Explanation**

- `native_format`: Native pathname format
- `generic_format`: Generic pathname format
- `auto_format`: Implementation-defined pathname format, auto-detected where possible

### Notes

On POSIX systems, there is no difference between native and generic format.

### See also

- [(constructor)](https://en.cppreference.com/w/cpp/filesystem/path/path): constructs a `path` (public member function)

---
Attribution: content from https://en.cppreference.com/w/cpp/filesystem/path/format (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.