I am aware of hasNext functions provided in Java language with class Scanner (java.util.Scanner) such as hasNextInt(), hasNextDouble(), etc..
And I am wondering if there is any similar standard/nonstandard class in C++ that's working directly with the input stream to check the type of the next potential input in the input stream buffer ???
Example:-
Standard Input Stream (cin): 1 2 3 4 5 F 7 8 9
while( cin.hasNextInt() )
cout<<"Integer";