This operator makes it possible to use streams and functions that return references to streams as loop conditions, resulting in the idiomatic C++ input loops such as while(stream >> value){...} or while(getline(stream, string)){...}. Such loops execute the loop's body only if the input operation succeeded.

The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.