std::filesystem::path::format
From cppreference.com
< cpp | filesystem | path
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
std::filesystem::path
path::native_formatpath::generic_formatpath::auto_format
(until C++20)(until C++20)(until C++20)(until C++20)(until C++20)(C++20)
enum format {
(since C++17)
native_format,
generic_format,
auto_format
Determines how string representations of pathnames are interpreted by the constructors of std::filesystem::path that accept strings.
[edit] Constants
Name
Explanation
native_format
Native pathname format
generic_format
Generic pathname format
auto_format
Implementation-defined pathname format, auto-detected where possible
[edit] Notes
On POSIX systems, there is no difference between native and generic format.