命名空间
变体
操作

std::filesystem::directory_iterator::operator*, std::filesystem::directory_iterator::operator->

来自 cppreference.cn
 
 
 
 
const std::filesystem::directory_entry& operator*() const;
(1) (始于 C++17)
const std::filesystem::directory_entry* operator->() const;
(2) (始于 C++17)

访问所指向的 directory_entry

在尾后迭代器上使用 operator*operator-> 的结果是未定义行为。

内容

[编辑] 参数

(无)

[编辑] 返回值

1) 此迭代器所指代的 directory_entry 的值。
2) 指向此迭代器所指代的 directory_entry 的指针。

[编辑] 异常

可能抛出实现定义的异常。

[编辑] 参见

访问所指向的条目
(std::filesystem::recursive_directory_iterator 的公共成员函数) [编辑]