Namespaces
Variants
Views
Actions

Talk:cpp/io/basic istream/gcount

From cppreference.com
< Talk:cpp‎ | io

I believe the mentioning of operator>>(basic_streambuf*) in the first list on the page is wrong. gcount() only returns the number of characters of *unformatted* input. See http://www.cplusplus.com/reference/istream/istream/gcount/ for comparison.

From cpp/io/basic_istream/operator_gtgt, on operator>>(basic_streambuf*): "Behaves as an UnformattedInputFunction". [istream::extractors]/14 supports this claim. MiiNiPaa (talk) 03:54, 30 August 2016 (PDT)
right (the page you quoted also continues to say "In either case, stores the number of characters extracted in the member variable accessed by subsequent calls to gcount()"). The corresponding standardese is in 27.7.2.2.3[istream.extractors]p14 --Cubbi (talk) 05:46, 30 August 2016 (PDT)