.TH "std::ostreambuf_iterator< _CharT, _Traits >" 3cxx "Fri May 28 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::ostreambuf_iterator< _CharT, _Traits > \- Provides output iterator semantics for streambufs\&. .SH SYNOPSIS .br .PP .PP Inherits \fBstd::iterator< output_iterator_tag, void, void, void, void >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "typedef void \fBdifference_type\fP" .br .RI "Distance between iterators is represented as this type\&. " .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 "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\&. .PP Definition at line 220 of file streambuf_iterator\&.h\&. .SH "Member Typedef Documentation" .PP .SS "template typedef _CharT \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::\fBchar_type\fP" .PP Public typedefs\&. .PP Definition at line 227 of file streambuf_iterator\&.h\&. .SS "typedef void \fBstd::iterator\fP< \fBoutput_iterator_tag\fP , void , void , void , void >::\fBdifference_type\fP\fC [inherited]\fP" .PP Distance between iterators is represented as this type\&. .PP Definition at line 125 of file stl_iterator_base_types\&.h\&. .SS "typedef \fBoutput_iterator_tag\fP \fBstd::iterator\fP< \fBoutput_iterator_tag\fP , void , void , void , void >::\fBiterator_category\fP\fC [inherited]\fP" .PP One of the \fBtag types\fP\&. .PP Definition at line 121 of file stl_iterator_base_types\&.h\&. .SS "template typedef \fBbasic_ostream\fP<_CharT, _Traits> \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::\fBostream_type\fP" .PP Public typedefs\&. .PP Definition at line 230 of file streambuf_iterator\&.h\&. .SS "typedef void \fBstd::iterator\fP< \fBoutput_iterator_tag\fP , void , void , void , void >::\fBpointer\fP\fC [inherited]\fP" .PP This type represents a pointer-to-value_type\&. .PP Definition at line 127 of file stl_iterator_base_types\&.h\&. .SS "typedef void \fBstd::iterator\fP< \fBoutput_iterator_tag\fP , void , void , void , void >::\fBreference\fP\fC [inherited]\fP" .PP This type represents a reference-to-value_type\&. .PP Definition at line 129 of file stl_iterator_base_types\&.h\&. .SS "template typedef \fBbasic_streambuf\fP<_CharT, _Traits> \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::\fBstreambuf_type\fP" .PP Public typedefs\&. .PP Definition at line 229 of file streambuf_iterator\&.h\&. .SS "template typedef _Traits \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::\fBtraits_type\fP" .PP Public typedefs\&. .PP Definition at line 228 of file streambuf_iterator\&.h\&. .SS "typedef void \fBstd::iterator\fP< \fBoutput_iterator_tag\fP , void , void , void , void >::\fBvalue_type\fP\fC [inherited]\fP" .PP The type 'pointed to' by the iterator\&. .PP Definition at line 123 of file stl_iterator_base_types\&.h\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::\fBostreambuf_iterator\fP (\fBostream_type\fP & __s)\fC [inline]\fP, \fC [noexcept]\fP" .PP Construct output iterator from ostream\&. .PP Definition at line 245 of file streambuf_iterator\&.h\&. .SS "template \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::\fBostreambuf_iterator\fP (\fBstreambuf_type\fP * __s)\fC [inline]\fP, \fC [noexcept]\fP" .PP Construct output iterator from streambuf\&. .PP Definition at line 249 of file streambuf_iterator\&.h\&. .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\&. .PP Definition at line 279 of file streambuf_iterator\&.h\&. .SS "template \fBostreambuf_iterator\fP& \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::operator* ()\fC [inline]\fP" .PP Return *this\&. .PP Definition at line 264 of file streambuf_iterator\&.h\&. .SS "template \fBostreambuf_iterator\fP& \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::operator++ ()\fC [inline]\fP" .PP Return *this\&. .PP Definition at line 274 of file streambuf_iterator\&.h\&. .SS "template \fBostreambuf_iterator\fP& \fBstd::ostreambuf_iterator\fP< _CharT, _Traits >::operator++ (int)\fC [inline]\fP" .PP Return *this\&. .PP Definition at line 269 of file streambuf_iterator\&.h\&. .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 Definition at line 254 of file streambuf_iterator\&.h\&. .PP References std::basic_streambuf< _CharT, _Traits >::sputc()\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.