std::basic_streambuf<CharT,Traits>::eback, gptr, egptr
From cppreference.com
< cpp | io | basic streambuf
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Input/output library
Print functions (C++23)
Buffers
(C++23)
(C++98/26*)
(C++20)
Streams
Abstractions
File I/O
String I/O
Array I/O
(C++23)
(C++23)
(C++23)
(C++98/26*)
(C++98/26*)
(C++98/26*)
Synchronized Output
(C++20)
Types
Error category interface
(C++11)
(C++11)
std::basic_streambuf
Public member functions
Locales
Positioning
Get area
Put area
Putback
Protected member functions
(C++11)
(C++11)
Locales
Positioning
Get area
basic_streambuf::ebackbasic_streambuf::gptrbasic_streambuf::egptr
Put area
Putback
char_type* eback() const;
(1)
char_type* gptr() const;
(2)
char_type* egptr() const;
(3)
Returns pointers defining the get area.
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.
Contents
[edit] Parameters
(none)
[edit] 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.
[edit] 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
.
[edit] Example
This section is incomplete
Reason: no example
Reason: no example
[edit] See also
returns a pointer to the beginning, current character and the end of the put area
(protected member function) [edit]
(protected member function) [edit]