std::experimental::filesystem::path::stem (3) - Linux Manuals
std::experimental::filesystem::path::stem: std::experimental::filesystem::path::stem
NAME
std::experimental::filesystem::path::stem - std::experimental::filesystem::path::stem
Synopsis
path stem() const; (filesystem TS)
Returns the filename identified by the path stripped of its extension.
Returns the substring from the beginning of filename() up to and not including the last period (.) character.
If the filename is one of the special filesystem components dot or dot-dot, or if it has no periods, the function returns the entire filename().
Parameters
(none)
Return value
The stem of the filename identified by the path.
Exceptions
(none)
Example
// Run this code
Output:
See also
filename (public member function)
extension (public member function)