std::istrea...rator::equal(3)

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

πŸ‘‘ 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 *this and it are 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