std::experi...ory_iterator(3)
π std::experi...ory_iterator(3) π
okay so this page is from the C++ Standard Libary (yes, with that spelling, bestie), and itβs all about std::experimental::filesystem::directory_iterator::directory_iterator. Itβs giving constructor main-character energy, no cap. π
π NAME π
std::experimental::filesystem::directory_iterator::directory_iteratorβstd::experimental::filesystem::directory_iterator::directory_iterator
β¨ Synopsis β¨
directory_iterator(); (1)
(filesystem TS)
explicit directory_iterator( const path& p ); (2)
(filesystem TS)
directory_iterator( const path& p, error_code& ec ); (3)
(filesystem TS)
directory_iterator( const directory_iterator& ) = default; (4)
(filesystem TS)
directory_iterator( directory_iterator&& ) = default; (5)
(filesystem TS)
Constructs a new directory iterator. Literally that. π«
- Constructs the end iterator.
- Constructs a directory iterator that refers to the first directory entry of a directory identified by
p. Ifprefers to a non-existing file or not a directory, returns the end iterator.
bestie, the page only spells out descriptions for (1) and (2) β (3), (4), and (5) are just sitting pretty in the synopsis above. π
π§ Parameters π§
This section is incomplete. Thatβs it. Thatβs the whole section. π
π Exceptions π
- (1) β
noexceptspecification:noexcept - (2) β
filesystem_errorif an error occurs. The exception object is constructed withpas an argument. - (3) β
noexceptspecification:noexcept
π¦ Notes π¦
To iterate over the current directory, construct the iterator as directory_iterator(".") instead of directory_iterator(""). This is the little glow-up that matters. β¨
π Categories π
- Noindexed pages
- Todo without reason
- unconditionally noexcept
π Hidden categories π
- Pages with unreviewed unconditional noexcept template
- Pages with unreviewed noexcept template
mwah, thatβs the whole page! source: http://cppreference.com, version/date: 2024.06.10, and the title for the cheap seats: std::experi...ory_iterator(3). stay iconic, 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