Spec-Zone.ru › C++

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

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

sgetc
reads one character from the input sequence without advancing the sequence
(public member function)
sbumpcstossc
(removed in C++17)
reads one character from the input sequence and advances the sequence
(public member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/io/basic_streambuf/snextc

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API