Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

      From cppreference.com
      <cpp‎ |io‎ |basic streambuf
       
       
       
      std::basic_streambuf
       
      int_type snextc();

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

      The function callssbumpc() to advance the input sequence. If that function returnsTraits::eof() meaning that input sequence has been exhausted anduflow() could not retrieve more data,Traits::eof() is returned. Otherwisesgetc() 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

      [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]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_streambuf/snextc&oldid=64241"

      [8]ページ先頭

      ©2009-2025 Movatter.jp