##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::istreambuf_iterator::operator*, operator->

From cppreference.com
< cpp‎ | iterator‎ | istreambuf iterator

CharT operator*() const; | (1) |
pointer operator->() const; | (2) | (since C++11) (until C++17)

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.

### [edit] Parameters

(none)

### [edit] Return value

1) The value of the obtained character.
2) An object of unspecified type, such that given an istreambuf iterator `i`, the expressions (*i).m and i->m have the same effect.

### [edit] Exceptions

(none)

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/iterator/istreambuf_iterator/operator*&oldid=91841"
Hidden category:

- Pages with unreviewed LWG DR marker