26.3 The ADAPTER Pattern (cont.)
- Can be used to read from a stream:
copy( istream_iterator<string>(cin),
istream_iterator<string>(), target.begin() );
- Default c'tor, istream_iterator<string>(), creates
end-of-stream sentinel
- Overload the * and != operators
prev
|top
|next