Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

      From cppreference.com
      <cpp‎ |io‎ |basic streambuf
       
       
       
      std::basic_streambuf
       
      protected:
      void gbump(int count);

      Skipscount characters in the get area. This is done by addingcount to theget pointer. No checks are done for underflow.

      Contents

      [edit]Parameters

      count - number of characters to skip

      [edit]Return value

      (none)

      [edit]Notes

      Because this function takes anint, it cannot manipulate buffers larger thanstd::numeric_limits<int>::max() characters (LWG issue 255).

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]Defect reports

      The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

      DRApplied toBehavior as publishedCorrect behavior
      LWG 59C++98it was unclear whethergbump can be implemented as
      callingsbumpccount times (which may check underflow)
      only addcount
      to the get pointer

      [edit]See also

      advances the next pointer of the output sequence
      (protected member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_streambuf/gbump&oldid=158806"

      [8]ページ先頭

      ©2009-2025 Movatter.jp