std::basic_filebuf::uflow(3)

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

You're reading std::basic_filebuf::uflow(3) from the C++ Standard Libary manual, bestie. πŸ¦‹ Yes, that spelling is literally in the header. We move. πŸ’…

🌸 NAME 🌸

std::basic_filebuf::uflow - std::basic_filebuf::uflow

It's giving "the name section is just the name twice," and honestly? Iconic. πŸ‘‘


πŸŽ€ Synopsis πŸŽ€

Here's the signature, no cap:

          protected:
          virtual int_type uflow()

πŸ’– Description πŸ’–

Okay so here's the tea: this one behaves like underflow(), except that if underflow() succeeds β€” meaning it does not return Traits::eof() β€” then it advances the next pointer for the get area. In other words, it consumes one of the characters obtained by underflow(). Slay. ✨


πŸ“ Parameters πŸ“

(none) β€” zero parameters, bestie. 🫢


✨ Return value ✨

The value of the character that was read and consumed in case of success, or Traits::eof() in case of failure. That's the whole vibe check. πŸ’œ


🌈 Example 🌈

This section is incomplete 😭

Reason: no example

The manual really said that, not me. πŸ™ˆ

πŸ‘€ See also πŸ‘€

  • uflow β€” reads characters from the associated input sequence to the get area and advances the next pointer [virtual] (virtual protected member function of std::basic_streambuf<CharT,Traits>)
  • underflow β€” reads from the associated file [virtual] (virtual protected member function)
  • overflow β€” writes characters to the associated file from the put area [virtual] (virtual protected member function)

πŸ’€ Category πŸ’€

* Todo no example


Catch you later, bestie! This page came from http://cppreference.com, dated 2024.06.10, and it's all about std::basic_filebuf::uflow(3). Mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from