std::istrea...ator++(int)(3)

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

πŸ’– NAME πŸ’–

okay so bestie, welcome to the C++ Standard Libary page for std::istreambuf_iterator::operator++,operator++(int). The official NAME line is literally:

std::istreambuf_iterator::operator++,operator++(int) - std::istreambuf_iterator::operator++,operator++(int)

The page header is std::istrea...ator++(int)(3) β€” and yes, the manual name is spelled Libary in the source, so we keep that spelling. it's giving retro typo realness. πŸŽ€


✨ Synopsis ✨

istreambuf_iterator& operator++(); (1)
/* proxy */ operator++( int );     (2)

So here's the tea: this advances the iterator by calling sbuf_->sbumpc() where sbuf_ is the stored pointer to the stream buffer. πŸ¦‹

bestie, important warning: the behavior is undefined if the iterator is an end-of-stream iterator. like, do not do that. πŸ’€

🌸 Parameters 🌸

  • (none) β€” literally no parameters, she takes nothing. 🫢

πŸ‘‘ Return value πŸ‘‘

  1. *this β€” yes, returns *this. slay.
  2. A proxy object holding the current character obtained via operator*() and the sbuf_ pointer. Dereferencing a proxy object with operator* yields the stored character. The name proxy is for exposition only. ✨

πŸ”₯ Exceptions πŸ”₯

May throw implementation-defined exceptions. so that's a "depends on the implementation" situation, no cap. πŸ’…


okay bye bestie 🫢 this page came from http://cppreference.com, dated 2024.06.10, with the footer page tag std::istrea...ator++(int)(3). πŸ’œ

πŸ“¦ where this page comes from