std::streamsize gcount() const;
The following member functions of
basic_istream change the value of subsequent
The following functions set
gcount() to zero:
 Return value
The number of characters extracted by the last unformatted input operation, or the maximum representable value of std::streamsize if the number is not representable.
Characters extracted: 11
 Defect reports
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
|DR||Applied to||Behavior as published||Correct behavior|
|LWG 3464||C++98||the return value was unspecified when the result overflows||returns the maximum value|