std::filesy...erator::pop(3)

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

πŸ’– std::filesy...erator::pop(3) β€” C++ Standard Libary πŸ’–

✨ NAME ✨

std::filesystem::recursive_directory_iterator::pop β€” okay bestie, this is the function, and the NAME field is literally the same name twice: std::filesystem::recursive_directory_iterator::pop - std::filesystem::recursive_directory_iterator::pop. We are in the C++ Standard Libary manual, and yes, that spelling is exactly what the page says. 🫢

πŸ“œ Synopsis πŸ“œ

void pop();                      (1) (since C++17)
void pop( std::error_code& ec ); (2) (since C++17)

Moves the iterator one level up in the directory hierarchy.

⚠️ Also: it invalidates all copies of the previous value of *this. Like, every copy, bestie. πŸ’€

If the parent directory is outside directory hierarchy that is iterated on (i.e. depth() == 0), sets *this to an end directory iterator. πŸŒ€

🧾 Parameters 🧾

  • ec β€” error code to store the error status to. 🌸

πŸ” Return value πŸ”

  • (none) β€” literally none. πŸ’…

πŸ’₯ Exceptions πŸ’₯

Any overload not marked noexcept may throw std::bad_alloc if memory allocation fails. 😭

  1. Throws std::filesystem::filesystem_error on underlying OS API errors, constructed with the OS error code as the error code argument.
  2. Sets a std::error_code& parameter to the OS API error code if an OS API call fails, and executes ec.clear() if no errors occur.

πŸ“ Example πŸ“

This section is incomplete.

Reason: no example.

🏷️ Category: 🏷️

  • Todo no example

okay that's the whole page, bestie β€” source: http://cppreference.com, version/date: 2024.06.10, and the footer page is std::filesy...erator::pop(3) πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from