File: istreambufiterators.yo

package info (click to toggle)
c%2B%2B-annotations 13.02.02-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,576 kB
  • sloc: cpp: 25,297; makefile: 1,523; ansic: 165; sh: 126; perl: 90; fortran: 27
file content (23 lines) | stat: -rw-r--r-- 1,203 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Input iterators are also available for ti(streambuf) objects.

To read from tt(streambuf) objects supporting input operations
 hi(istreambuf_iterator)tt(istreambuf_iterators) can be used, supporting the
operations that are also available for tt(istream_iterator). Different from
the latter iterator type tt(istreambuf_iterators) support three constructors:
    itemization(
    ittq(istreambuf_iterator<Type>)
        (The end iterator of an iterator range is created using the default
tt(istreambuf_iterator) constructor. It represents the i(end-of-stream)
condition when extracting values of type tt(Type) from the tt(streambuf).
        )
    ittq(istreambuf_iterator<Type>(streambuf *))
        (A pointer to a tt(streambuf) may be used when defining an
tt(istreambuf_iterator). It represents the begin iterator of an iterator
range.)
    ittq(istreambuf_iterator<Type>(istream))
        (An em(istream) may be also used when defining an
tt(istreambuf_iterator). It accesses the tt(istream)'s tt(streambuf) and it
also represents the begin iterator of an iterator range.)
    )
    In section ref(OSTREAMBUFITER) an example is given using both
tt(istreambuf_iterators) and tt(ostreambuf_iterators).