std::istrea...rator::equal(3)
π NAME π
std::istreambuf_iterator::equal - std::istreambuf_iterator::equal
Okay so welcome to the std::istrea...rator::equal(3) page from the C++ Standard Libary manual, bestie π β yes, Libary is literally how the header spells it, and we are not fixing it, we are respecting the lore π
.
β¨ Synopsis β¨
bool equal( const istreambuf_iterator& it ) const;
This is the whole vibe check: equal checks whether both *this and it are valid, or both are invalid, regardless of the stream buffer objects they use. So itβs not comparing which stream buffer objects they use β itβs comparing validity status, periodt.
πΈ Parameters πΈ
itβ another stream buffer iterator to compare to. Thatβs the entire parameter list, bestie π«Ά.
π Return value π
trueβ if both*thisanditare valid, or both are invalid.falseβ otherwise.
π Exceptions π
May throw implementation-defined exceptions. Ngl, implementation-defined means exactly that, so donβt assume itβs a calm no-throw situation π.
π§ Defect reports π§
The following behavior-changing defect reports were applied retroactively to previously published C++ standards. Drama, but make it standards-committee π:
- DR: LWG 110 Β· Applied to: C++98 Β· Behavior as published: the signature was
bool equal(istreambuf_iterator& it)Β· Correct behavior: consts added. - DR: LWG 1126 Β· Applied to: C++98 Β· Behavior as published: LWG issue 110 was not properly resolved, leaving the parameter type as
istreambuf_iterator&Β· Correct behavior: const added.
Source/version + date sign-off, bestie: page source http://cppreference.com, page date 2024.06.10, footer tag std::istrea...rator::equal(3). Thatβs the tea β β stay hydrated, keep your iterators valid, and slay the day πβ¨π¦
π¦ 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