std::istrea...r::operator*(3)
π 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
- 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