std::experi...++,increment(3)
π NAME π
hiii bestie welcome to the manual page for std::experimental::filesystem::recursive_directory_iterator::operator++,increment β from the C++ Standard Libary manual. The header title is std::experi...++,increment(3), and yes, the name is a whole mouthful. The original literally repeats it, so here are both name lines:
std::experimental::filesystem::recursive_directory_iterator::operator++,increment-std::experimental::filesystem::recursive_directory_iterator::operator++,increment
π¦ Synopsis π¦
here's the function-signature tea, with (filesystem TS) exactly where it belongs:
recursive_directory_iterator& operator++();
(filesystem TS)
recursive_directory_iterator& increment( error_code& ec );
(filesystem TS)
okay so what does it even do? It advances the iterator to the next entry. that's the main-character move. β¨
If there are no more entries left in the currently iterated directory, the iteration is resumed over the parent directory. The process is repeated if the parent directory has no sibling entries that can to be iterated on. If the parent of the directory hierarchy that has been recursively iterated on is reached β meaning there are no candidate entries at depth() == 0 β then *this is set to an end iterator. periodt. π
Otherwise, if *this refers to a directory, it is iterated into if the following conditions are met:
disable_recursion_pending()has not been called before this increment, i.e.recursion_pending() == true.- The directory is not a symlink or following symlinks is enabled, i.e.
!is_symlink(this->symlink_status()) ||
(options() & directory_options::follow_directory_symlink) != 0).
π Parameters π
ecβ error code to store the error status to.
πΈ Return value πΈ
*this β yes bestie, it hands you back *this. π«Ά
π₯ Exceptions π₯
filesystem_errorif an error occurs. The error code is set to an appropriate error code for the error that caused the failure.- noexcept specification:
noexcept
π Categories π
- Noindexed pages
- unconditionally noexcept
π Hidden categories π
- Pages with unreviewed unconditional noexcept template
- Pages with unreviewed noexcept template
mwah π this page came from http://cppreference.com, dated 2024.06.10, and the footer title again is std::experi...++,increment(3). stay slay, bestie π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms