std::filesystem::path::empty
bool empty() const; | | (since C++17) |
|---|
检查路径是否为空。
参数
%280%29
返回值
true如果路径是空的,false否则。
例外
noexcept规格:
noexcept
注记
可以通过调用clear默认情况下-构造一个path它也可以由路径分解函数%28返回,例如extension%29如果路径中不存在相应的组件。
空路径被归类为相对路径。
另见
(constructor) | constructs a path (public member function) |
|---|
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

