I/O manipulators | ||||
Print functions(C++23) | ||||
C-style I/O | ||||
Buffers | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++20) | ||||
Streams | ||||
Abstractions | ||||
File I/O | ||||
String I/O | ||||
Array I/O | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
Synchronized Output | ||||
(C++20) | ||||
Types | ||||
Error category interface | ||||
(C++11) | ||||
(C++11) |
|
|
std::streamsize in_avail(); | ||
Returns the number of characters available in the get area. If a read position is available, effectively returnsegptr()- gptr(), the size of the get area. In this case, the number of bytes returned is the number of bytes that can be extracted from the buffer without callingunderflow().
If the get area is empty, callsshowmanyc() to determine the number of bytes available in the associated character sequence. In this case, the value returned is the number of bytes that can be extracted from the buffer while it's guaranteed thatunderflow() would not returnTraits::eof
.
Contents |
(none)
The number of characters available for non-blocking read (either the size of the get area or the number of characters ready for reading from the associated character sequence), or-1 if no characters are available in the associated sequence as far asshowmanyc() can tell.
This section is incomplete Reason: no example |
[virtual] | optionally provides the number of characters available for input from the file (virtual protected member function of std::basic_filebuf<CharT,Traits> )[edit] |
extracts already available blocks of characters (public member function of std::basic_istream<CharT,Traits> )[edit] |