std::basic_...,gptr,egptr(3)

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

πŸ’– NAME

std::basic_streambuf::eback,gptr,egptr β€” std::basic_streambuf::eback,gptr,egptr

okay bestie, welcome to the std::basic_...,gptr,egptr(3) page from the C++ Standard Libary manual ✨ this one is all about the pointers that define the get area, and yes the NAME line above is literally that doubled-up thing β€” iconic, no notes πŸ’…


✨ Synopsis ✨

Here are the signatures, bestie β€” copy them exactly, do not freestyle:

char_type* eback() const; (1)
char_type* gptr() const;  (2)
char_type* egptr() const; (3)

Returns pointers defining the get area. Translation for the bestie:

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

🫢 Parameters

(none) β€” literally zero parameters, she takes no arguments and still serves πŸ’…


πŸ’– Return value

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

🧠 Notes

While the names "gptr" and "egptr" refer to the get area, the name "eback" refers to the end of the putback area: stepping backwards from gptr, characters can be put back until eback.

🌸 Example

This section is incomplete Reason: no example

they really left us hanging on this one 😭 the manual said it itself, not me πŸ™ˆ


πŸ‘€ See also

  • pbase β€” returns a pointer to the beginning, current character and the end of the put area
  • pptr
  • epptr (protected member function)

πŸŽ€ Category

  • Todo no example

source: http://cppreference.com, version/date: 2024.06.10 β€” bye bestie, go slay those get pointers πŸ’…πŸ«Άβœ¨

πŸ“¦ where this page comes from