std::ostreambuf_iterator<CharT,Traits>::operator=
From cppreference.com
< cpp | iterator | ostreambuf iterator
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)
Iterator library
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)(C++20)(C++23)(C++20)(C++20)
(deprecated in C++17)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++14)
(C++11)
(C++11)
(C++20)(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++23)
(C++23)
(C++23)
(C++23)
(C++23)
(C++11)(C++14)
(C++14)(C++14)
std::ostreambuf_iterator
Member functions
ostreambuf_iterator::operator=
ostreambuf_iterator& operator=( CharT c );
If failed() returns false, inserts the character c into the associated stream buffer by calling pbuf->sputc(c), where pbuf
is the private member of type streambuf_type*
. Otherwise, does nothing.
If the call to pbuf->sputc(c) returns Traits::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
Reason: no example