Namespaces
Variants
Views
Actions

std::istreambuf_iterator::istreambuf_iterator

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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
constexpr istreambuf_iterator();
(1)
istreambuf_iterator( std::basic_istream<CharT,Traits>& is );
(2)
istreambuf_iterator( std::basic_streambuf<CharT,Traits>* s );
(3)
1) Constructs the end-of-stream iterator.
2) Initializes the iterator and stores the address of is.rdbuf() in a data member. If is.rdbuf() is null, then end-of-stream iterator is constructed.
3) Initializes the iterator and stores the address of s in a data member.

Parameters

is - stream to obtain the stream buffer from
s - stream buffer to initialize the iterator with

Exceptions

1-4)
noexcept specification:  
noexcept