std::istrea...r::operator*(3)

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

πŸ’… std::istreambuf_iterator::operator* πŸ’…

Okay bestie, welcome to the std::istreambuf_iterator::operator* page from the C++ Standard Libary manual β€” and yes, it’s spelled β€œLibary” in the manual, not me πŸ’€. The header shortens the title all cute and chaotic as std::istrea...r::operator*(3), but we’re talking about the full name, no cap.

✨ NAME ✨

The name is std::istreambuf_iterator::operator* β€” and the page lists it as std::istreambuf_iterator::operator* - std::istreambuf_iterator::operator*, because apparently one name wasn’t enough 🫢.

🌸 Synopsis 🌸

CharT operator*() const;

Reads a single character by calling sbuf_->sgetc() where sbuf_ is the stored pointer to the stream buffer.

⚠️ Danger zone, bestie: the behavior is undefined if the iterator is end-of-stream iterator. Like, literally undefined. Do not test it πŸ™ˆ.

πŸŽ€ Parameters πŸŽ€

(none) β€” nothing to pass in, icon behavior πŸ’….

⭐ Return value ⭐

The value of the obtained character. That’s the whole vibe ✨.

πŸ”₯ Exceptions πŸ”₯

May throw implementation-defined exceptions. So like, it might throw something, and the implementation gets to decide the details β€” iykyk 😭.


Source/version: http://cppreference.com Β· date: 2024.06.10 β€” bye bestie, go read your iterators responsibly πŸ’–πŸ¦‹

πŸ“¦ where this page comes from