std::filesy...::operator*,(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– NAME πŸ’–

This is the std::filesy...::operator*,(3) page from the C++ Standard Libary manual, bestie β€” yes, the typo is in the manual name, not you. The NAME section is literally about std::filesystem::directory_iterator::operator*,, and the raw NAME lines are std::filesystem::directory_iterator::operator*, - and std::filesystem::directory_iterator::operator*,. Slay. ✨

🌸 Synopsis 🌸

const std::filesystem::directory_entry& operator*() const;  (1)
(since C++17)
const std::filesystem::directory_entry* operator->() const; (2)
(since C++17)

Both of these access the pointed-to directory_entry. The result of operator* or operator-> on the end iterator is undefined behavior β€” like, do not, fr fr πŸ˜­πŸ’€.

πŸŽ€ Parameters πŸŽ€

(none) β€” no parameters at all. Zero. Nada. 🫢

⭐ Return value ⭐

  1. Value of the directory_entry referred to by this iterator.
  2. Pointer to the directory_entry referred to by this iterator.

πŸ”₯ Exceptions πŸ”₯

May throw implementation-defined exceptions. That's the tea. β˜•

πŸ‘‘ See also πŸ‘‘

  • operator* β€” accesses the pointed-to entry
  • operator-> β€” (public member function of std::filesystem::recursive_directory_iterator)

xoxo, your Unix bestie πŸ’… β€” source: http://cppreference.com, version/date: 2024.06.10, page: std::filesy...::operator*,(3). Bye bestie! πŸ’–βœ¨

πŸ“¦ where this page comes from