Files
cppdraft_translate/cppdraft/istreambuf/iterator/cons.md
2025-10-25 03:02:53 +03:00

1.8 KiB

[istreambuf.iterator.cons]

24 Iterators library [iterators]

24.6 Stream iterators [stream.iterators]

24.6.4 Class template istreambuf_iterator [istreambuf.iterator]

24.6.4.3 Constructors [istreambuf.iterator.cons]

1

#

For each istreambuf_iterator constructor in this subclause, an end-of-stream iterator is constructed if and only if the exposition-only member sbuf_ is initialized with a null pointer value.

🔗

constexpr istreambuf_iterator() noexcept; constexpr istreambuf_iterator(default_sentinel_t) noexcept;

2

#

Effects: Initializes sbuf_ with nullptr.

🔗

istreambuf_iterator(istream_type& s) noexcept;

3

#

Effects: Initializes sbuf_ with s.rdbuf().

🔗

istreambuf_iterator(streambuf_type* s) noexcept;

4

#

Effects: Initializes sbuf_ with s.

🔗

istreambuf_iterator(const proxy& p) noexcept;

5

#

Effects: Initializes sbuf_ with p.sbuf_.