.TH "std::ostreambuf_iterator< _CharT, _Traits >" 3cxx "Tue Jun 13 2023" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::ostreambuf_iterator< _CharT, _Traits > \- Provides output iterator semantics for streambufs\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBstd::iterator< output_iterator_tag, void, void, void, void >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "typedef \fBoutput_iterator_tag\fP \fBiterator_category\fP" .br .RI "One of the \fBtag types\fP\&. " .ti -1c .RI "typedef void \fBpointer\fP" .br .RI "This type represents a pointer-to-value_type\&. " .ti -1c .RI "typedef void \fBreference\fP" .br .RI "This type represents a reference-to-value_type\&. " .ti -1c .RI "typedef void \fBvalue_type\fP" .br .RI "The type 'pointed to' by the iterator\&. " .in -1c .PP .RI "\fB\fP" .br .in +1c .in +1c .ti -1c .RI "using \fBdifference_type\fP = ptrdiff_t" .br .RI "Public typedefs\&. " .ti -1c .RI "typedef _CharT \fBchar_type\fP" .br .RI "Public typedefs\&. " .ti -1c .RI "typedef _Traits \fBtraits_type\fP" .br .RI "Public typedefs\&. " .ti -1c .RI "typedef \fBbasic_streambuf\fP< _CharT, _Traits > \fBstreambuf_type\fP" .br .RI "Public typedefs\&. " .ti -1c .RI "typedef \fBbasic_ostream\fP< _CharT, _Traits > \fBostream_type\fP" .br .RI "Public typedefs\&. " .in -1c .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBostreambuf_iterator\fP (\fBostream_type\fP &__s) noexcept" .br .RI "Construct output iterator from ostream\&. " .ti -1c .RI "\fBostreambuf_iterator\fP (\fBstreambuf_type\fP *__s) noexcept" .br .RI "Construct output iterator from streambuf\&. " .ti -1c .RI "\fBostreambuf_iterator\fP & \fB_M_put\fP (const _CharT *__ws, \fBstreamsize\fP __len)" .br .ti -1c .RI "bool \fBfailed\fP () const noexcept" .br .RI "Return true if previous operator=() failed\&. " .ti -1c .RI "\fBostreambuf_iterator\fP & \fBoperator*\fP ()" .br .RI "Return *this\&. " .ti -1c .RI "\fBostreambuf_iterator\fP & \fBoperator++\fP ()" .br .RI "Return *this\&. " .ti -1c .RI "\fBostreambuf_iterator\fP & \fBoperator++\fP (int)" .br .RI "Return *this\&. " .ti -1c .RI "\fBostreambuf_iterator\fP & \fBoperator=\fP (_CharT __c)" .br .RI "Write character to streambuf\&. Calls streambuf\&.sputc()\&. " .in -1c .SS "Friends" .in +1c .ti -1c .RI "template __gnu_cxx::__enable_if< __is_char< _CharT2 >::__value, \fBostreambuf_iterator\fP< _CharT2 > >::__type \fBcopy\fP (\fBistreambuf_iterator\fP< _CharT2 >, \fBistreambuf_iterator\fP< _CharT2 >, \fBostreambuf_iterator\fP< _CharT2 >)" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class std::ostreambuf_iterator< _CharT, _Traits >"Provides output iterator semantics for streambufs\&. .SH "Member Typedef Documentation" .PP .SS "template typedef _CharT \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::char_type" .PP Public typedefs\&. .SS "template using \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::difference_type = ptrdiff_t" .PP Public typedefs\&. .SS "typedef \fBoutput_iterator_tag\fP \fBstd::iterator\fP< \fBoutput_iterator_tag\fP , void , void , void , void >::iterator_category\fC [inherited]\fP" .PP One of the \fBtag types\fP\&. .SS "template typedef \fBbasic_ostream\fP<_CharT, _Traits> \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::ostream_type" .PP Public typedefs\&. .SS "typedef void \fBstd::iterator\fP< \fBoutput_iterator_tag\fP , void , void , void , void >::pointer\fC [inherited]\fP" .PP This type represents a pointer-to-value_type\&. .SS "typedef void \fBstd::iterator\fP< \fBoutput_iterator_tag\fP , void , void , void , void >::reference\fC [inherited]\fP" .PP This type represents a reference-to-value_type\&. .SS "template typedef \fBbasic_streambuf\fP<_CharT, _Traits> \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::streambuf_type" .PP Public typedefs\&. .SS "template typedef _Traits \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::traits_type" .PP Public typedefs\&. .SS "typedef void \fBstd::iterator\fP< \fBoutput_iterator_tag\fP , void , void , void , void >::value_type\fC [inherited]\fP" .PP The type 'pointed to' by the iterator\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::ostreambuf_iterator (\fBostream_type\fP & __s)\fC [inline]\fP, \fC [noexcept]\fP" .PP Construct output iterator from ostream\&. .SS "template \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::ostreambuf_iterator (\fBstreambuf_type\fP * __s)\fC [inline]\fP, \fC [noexcept]\fP" .PP Construct output iterator from streambuf\&. .SH "Member Function Documentation" .PP .SS "template bool \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::failed () const\fC [inline]\fP, \fC [noexcept]\fP" .PP Return true if previous operator=() failed\&. .SS "template \fBostreambuf_iterator\fP & \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::operator* ()\fC [inline]\fP" .PP Return *this\&. .SS "template \fBostreambuf_iterator\fP & \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::operator++ ()\fC [inline]\fP" .PP Return *this\&. .SS "template \fBostreambuf_iterator\fP & \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::operator++ (int)\fC [inline]\fP" .PP Return *this\&. .SS "template \fBostreambuf_iterator\fP & \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::operator= (_CharT __c)\fC [inline]\fP" .PP Write character to streambuf\&. Calls streambuf\&.sputc()\&. .PP References \fBstd::basic_streambuf< _CharT, _Traits >::sputc()\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.