Namespaces
Variants
Views
Actions

std::basic_streambuf::snextc

From cppreference.com
 
 
 
 
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.

Contents

[edit] Parameters

(none)

[edit] Return value

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

[edit] Example

[edit] See also

reads one character from the input sequence without advancing the sequence
(public member function) [edit]
reads one character from the input sequence and advances the sequence
(public member function) [edit]