std::basic_streambuf<CharT,Traits>::snextc
From cppreference.com
< cpp | io | basic streambuf
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Input/output library
Print functions (C++23)
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::basic_streambuf
Public member functions
Locales
Positioning
Get area
basic_streambuf::snextc
Put area
Putback
Protected member functions
(C++11)
(C++11)
Locales
Positioning
Get area
Put area
Putback
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
This section is incomplete
Reason: no example
Reason: no example
[edit] See also
reads one character from the input sequence without advancing the sequence
(public member function) [edit]
(public member function) [edit]
(removed in C++17)
(public member function) [edit]