.TH "std::ostreambuf_iterator< _CharT, _Traits >" 3 "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::ostreambuf_iterator< _CharT, _Traits > \- Provides output iterator semantics for streambufs\&. .SH SYNOPSIS .br .PP .PP \fR#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" .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 "ostreambuf_iterator & \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 "ostreambuf_iterator & \fBoperator*\fP ()" .br .RI "Return *this\&. " .ti -1c .RI "ostreambuf_iterator & \fBoperator++\fP ()" .br .RI "Return *this\&. " .ti -1c .RI "ostreambuf_iterator & \fBoperator++\fP (int)" .br .RI "Return *this\&. " .ti -1c .RI "ostreambuf_iterator & \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, ostreambuf_iterator< _CharT2 > >::__type \fBcopy\fP (\fBistreambuf_iterator\fP< _CharT2 >, \fBistreambuf_iterator\fP< _CharT2 >, ostreambuf_iterator< _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" .PP Public typedefs\&. .SS "typedef \fBoutput_iterator_tag\fP \fBstd::iterator\fP< \fBoutput_iterator_tag\fP, void, void, void, void >::iterator_category\fR [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\fR [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\fR [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\fR [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)\fR [inline]\fP, \fR [noexcept]\fP" .PP Construct output iterator from ostream\&. .SS "template \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::ostreambuf_iterator (\fBstreambuf_type\fP * __s)\fR [inline]\fP, \fR [noexcept]\fP" .PP Construct output iterator from streambuf\&. .SH "Member Function Documentation" .PP .SS "template bool \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::failed () const\fR [inline]\fP, \fR [nodiscard]\fP, \fR [noexcept]\fP" .PP Return true if previous operator=() failed\&. .PP Referenced by \fBstd::basic_ostream< _CharT, _Traits >::operator<<()\fP\&. .SS "template ostreambuf_iterator & \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::operator* ()\fR [inline]\fP, \fR [nodiscard]\fP" .PP Return *this\&. .SS "template ostreambuf_iterator & \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::operator++ ()\fR [inline]\fP" .PP Return *this\&. .SS "template ostreambuf_iterator & \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::operator++ (int )\fR [inline]\fP" .PP Return *this\&. .SS "template ostreambuf_iterator & \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::operator= (_CharT __c)\fR [inline]\fP" .PP Write character to streambuf\&. Calls streambuf\&.sputc()\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.