std::basic_...ambuf::pptr,(3)

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

πŸ’… std::basic_...ambuf::pptr,(3) πŸ’…

okay so bestie, this page is from the C++ Standard Libary manual (yes, that's how the header spells it β€” not my typo πŸ™ˆ). It's all about three protected member functions that hand you pointers for the put area, and honestly it's short but useful. 🫢

🌸 NAME 🌸

std::basic_streambuf::pbase, std::basic_streambuf::pptr β€” these are the names on the NAME line. The line is kind of doing the most: it repeats them with commas and a hyphen, like std::basic_streambuf::pbase,std::basic_streambuf::pptr, - std::basic_streambuf::pbase,std::basic_streambuf::pptr,. Also std::basic_streambuf::epptr shows up in the synopsis, so don't get confused, bestie. πŸ’–

πŸ¦‹ Synopsis πŸ¦‹

protected:                (1)
char_type* pbase() const;
protected:                (2)
char_type* pptr() const;
protected:                (3)
char_type* epptr() const;

Returns pointers defining the put area. That's the whole vibe. ✨

  1. Returns the pointer to the beginning ("base") of the put area.
  2. Returns the pointer to the current character (put pointer) in the put area.
  3. Returns the pointer one past the end of the put area.

πŸŽ€ Parameters πŸŽ€

(none) β€” literally no parameters, bestie. Not a single one. 😌

✨ Return value ✨

  1. The pointer to the beginning of the put area.
  2. The pointer to the current character (put pointer) in the put area.
  3. The pointer one past the end of the put area.

πŸ“ Example πŸ“

This section is incomplete Reason: no example

no example bestie, it's giving placeholder energy 😭

πŸ‘€ See also πŸ‘€

  • eback, gptr, egptr β€” returns a pointer to the beginning, current character and the end of the get area. egptr is marked as a protected member function.

(the See also block in the original is word-wrapped kinda feral, but those are the names and that's the description 🫠)

🧚 Category 🧚

  • Todo no example

πŸ’– that's the page, bestie! source/version: http://cppreference.com Β· date: 2024.06.10 Β· page: std::basic_...ambuf::pptr,(3) πŸ’–

πŸ“¦ where this page comes from