# std::istreambuf_iterator<CharT,Traits>::operator*

> C++ Atlas: `cppatlas.com/w/cpp/iterator/istreambuf_iterator/operator*` | Source: https://en.cppreference.com/w/cpp/iterator/istreambuf_iterator/operator* | Domain: Iterator

Reads a single character by calling sbuf_->sgetc() where sbuf_ is the stored pointer to the stream buffer.

## Official Specification Summary (cppreference)

```cpp
CharT operator*() const;
```

Reads a single character by calling `sbuf_->sgetc()` where `sbuf_` is the stored pointer to the stream buffer.

The behavior is undefined if the iterator is end-of-stream iterator.

### Parameters

(none)

### Return value

The value of the obtained character.

### Exceptions

May throw implementation-defined exceptions.

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