# std::basic_streambuf<CharT,Traits>::eback, gptr, egptr

> C++ Atlas: `cppatlas.com/w/cpp/io/basic_streambuf/gptr` | Source: https://en.cppreference.com/w/cpp/io/basic_streambuf/gptr | Domain: Input/output

Returns pointers defining the get area.

## Official Specification Summary (cppreference)

```cpp
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.

### Parameters

(none)

### 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

> Note: This section is incomplete Reason: no example

### See also

- [`pbase`](https://en.cppreference.com/w/cpp/io/basic_streambuf/pptr), [`pptr`](https://en.cppreference.com/w/cpp/io/basic_streambuf/pptr), [`epptr`](https://en.cppreference.com/w/cpp/io/basic_streambuf/pptr): returns a pointer to the beginning, current character and the end of the put area (protected member function)

---
Attribution: content from https://en.cppreference.com/w/cpp/io/basic_streambuf/gptr (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.