17.8.1 Stream Loops and Conversion
Operators
Consider the familiar construct:
while( cin >> x )
. . .
- The >> operator returns istream&
- Not a valid boolean expression
- istream provides a conversion operator that returns
false on end of input or on error
prev
|top
|next