命名空间
变体
操作

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 的公开成员函数) [编辑]