名前空間
変種

std::filesystem::path::filename

提供: cppreference.com
 
 
 
 
<tbody> </tbody>
path filename() const;
(C++17以上)

パスの汎用形式のファイル名部分を返します。

relative_path().empty() ? path() : *--end() と同等です。