Namespaces
Variants

std::filesystem::path::display_string

From cppreference.com
 
 
 
std::filesystem::path
 
std::string display_string() const;
(since C++26)

Returns the internal pathname in native pathname format, formatted by the specialized formatter.

Return value

std::format("{}", *this)

Example

See also

returns the path in native pathname format converted to a string
(public member function) [edit]
returns the path in generic pathname format suitable for display
(public member function) [edit]