W3cubDocs

/C++

std::filesystem::path::clear

void clear() noexcept;
(since C++17)

Clears the stored pathname. empty() is true after the call.

Parameters

(none).

Return value

(none).

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/filesystem/path/clear