std::basic_streambuf<CharT,Traits>::snextc

From cppreference.com
< cpp‎ | io‎ | basic streambuf
 
 
Input/output library
I/O manipulators
Print functions (哋它亢++23)
C-style I/O
Buffers
(哋它亢++23)
(哋它亢++98/26*)
(哋它亢++20)
Streams
Abstractions
File I/O
String I/O
Array I/O
(哋它亢++23)
(哋它亢++23)
(哋它亢++23)
(哋它亢++98/26*)
(哋它亢++98/26*)
(哋它亢++98/26*)
Synchronized Output
(哋它亢++20)
Types
Error category interface
(哋它亢++11)
(哋它亢++11)
 
 
int_type snextc();

Advances the input sequence by one character and reads one character.

The function calls sbumpc() to advance the input sequence. If that function returns Traits::eof() meaning that input sequence has been exhausted and uflow() could not retrieve more data, Traits::eof() is returned. Otherwise sgetc() is called in order to read the character.

Parameters

(none)

Return value

The value of the next character. If the input sequence has been exhausted, Traits::eof() is returned.

Example

See also

reads one character from the input sequence without advancing the sequence
(public member function)
(removed in 哋它亢++17)
reads one character from the input sequence and advances the sequence
(public member function)