Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ostreambuf_iterator<CharT,Traits>::operator=

      From cppreference.com
      <cpp‎ |iterator‎ |ostreambuf iterator
       
       
      Iterator library
      Iterator concepts
      Iterator primitives
      Algorithm concepts and utilities
      Indirect callable concepts
      Common algorithm requirements
      (C++20)
      (C++20)
      (C++20)
      Utilities
      (C++20)
      Iterator adaptors
      Range access
      (C++11)(C++14)
      (C++14)(C++14)  
      (C++11)(C++14)
      (C++14)(C++14)  
      (C++17)(C++20)
      (C++17)
      (C++17)
       
       
      ostreambuf_iterator& operator=( CharT c);

      Iffailed() returnsfalse, inserts the characterc into the associated stream buffer by callingpbuf->sputc(c), wherepbuf is the private member of typestreambuf_type*. Otherwise, does nothing.

      If the call topbuf->sputc(c) returnsTraits::eof, sets the failed() flag to true.

      Contents

      [edit]Parameters

      c - the character to insert

      [edit]Return value

      *this

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      writes one character to the put area and advances the next pointer
      (public member function ofstd::basic_streambuf<CharT,Traits>)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/iterator/ostreambuf_iterator/operator%3D&oldid=159949"

      [8]ページ先頭

      ©2009-2025 Movatter.jp