Reputation: 655
Does the C++ standard specify how a stream in/out operators should behave? Specifically which characters to be taken as separators?
Upvotes: 2
Views: 110
Reputation: 42889
Yes the standard specifies how I/O overloaded operators should behave in
Upvotes: 1
Reputation: 76519
The reference page on std::istream::operator>>
contains the numerical and stream overloads and how they work, and the non-member overload for std::basic_string
defines the other variant.
Basically, std::isspace
is used to end the input operation.
Any operator>>
you define yourself behaves in the exact way that you define it of course...
Upvotes: 2