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

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

🌸 NAME 🌸

Okay bestie, welcome to the page the header calls std::experi...::operator*,(3) β€” it’s from the C++ Standard Libary manual (yes, spelled exactly like that in the header, iconic). It’s all about std::experimental::filesystem::recursive_directory_iterator::operator*, and the NAME line literally lists std::experimental::filesystem::recursive_directory_iterator::operator*, then a -, then std::experimental::filesystem::recursive_directory_iterator::operator*, again. Repetition? Obsessed. πŸ’…

✨ Synopsis ✨

const directory_entry& operator*() const;  (1) (filesystem TS)
const directory_entry* operator->() const; (2) (filesystem TS)

It accesses the pointed-to directory_entry. ✨

⚠️ Bestie, this is the important part: the result of operator* or operator-> on the end iterator is undefined behavior. No cap, do not mess with the end iterator here. 😭

🧸 Parameters 🧸

(none) β€” literally no parameters, she takes nothing. πŸŽ€

πŸ’– 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.

πŸ‘€ See also πŸ‘€

  • operator* accesses the pointed-to entry
  • operator-> (public member function of std::experimental::filesystem::directory_iterator)

🏷️ Category 🏷️

  • * Noindexed pages

Source/version: http://cppreference.com · date: 2024.06.10 · footer title: std::experi...::operator*,(3) 🫢✨

πŸ“¦ where this page comes from