Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | iterator‎ | istreambuf iterator
Revision as of 15:57, 5 June 2013 by P12 (Talk | contribs)

CharT operator*() const;
(1)
CharT* operator->() const;
(2)

Reads a single character.

1) Returns the result of sbuf_->sgetc() where sbuf_ is the stored stream buffer.
2) Returns a pointer to the result of operator*().

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

Parameters

(none)

Return value

1) The value of the obtained character.
2) A pointer to the obtained character.

Exceptions

(none)