std::experimental::filesystem::path::filename (3) - Linux Manuals
std::experimental::filesystem::path::filename: std::experimental::filesystem::path::filename
NAME
std::experimental::filesystem::path::filename - std::experimental::filesystem::path::filename
Synopsis
path filename() const; (filesystem TS)
Returns the filename component of the path.
Equivalent to empty() ? path() : *--end().
Parameters
(none)
Return value
The filename identified by the path.
Exceptions
(none)
Example
// Run this code
Output:
See also
extension (public member function)
stem (public member function)
replace_filename (public member function)
has_filename (public member function)