std::filesystem::path::empty

std::filesystem::path::empty

bool empty() const;
(since C++17)

Checks if the path is empty.

Parameters

(none).

Return value

true if the path is empty, false otherwise.

Exceptions

noexcept specification:
noexcept

Notes

An empty path can be obtained by calling clear and by default-constructing a path. It can also be returned by a path decomposition function (such as extension) if the corresponding component is not present in the path.

An empty path is classified as a relative path.

See also

constructs a path
(public member function)

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部