Namespaces
Variants
Actions

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

From cppreference.com
< cpp‎ | io‎ | basic streambuf
 
C++
 
Input/output library
 
std::basic_streambuf
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]
(removed in C++17)
reads one character from the input sequence and advances the sequence
(public member function) [edit]

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant