[#BloombergLP-bslfmt-Format_ContextOutputIteratorRef] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::Format_ContextOutputIteratorRef :relfileprefix: ../../ :mrdocs: This class provides a type‐erased interface to an output iterator that it holds indirectly via a reference to a `Format_ContextOutputIteratorImpl` type. It is solely for private use by other components of the `bslfmt` package and should not be used directly. == Synopsis Declared in `<bslfmt_format_context.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_VALUE> class Format_ContextOutputIteratorRef; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslfmt/Format_ContextOutputIteratorRef/difference_type.adoc[`difference_type`] | This `typedef` is an alias for `void` (type‐erased output iterator). | xref:BloombergLP/bslfmt/Format_ContextOutputIteratorRef/iterator_category.adoc[`iterator_category`] | This `typedef` is an alias for `bsl::output_iterator_tag`. | xref:BloombergLP/bslfmt/Format_ContextOutputIteratorRef/pointer.adoc[`pointer`] | This `typedef` is an alias for `void` (type‐erased output iterator). | xref:BloombergLP/bslfmt/Format_ContextOutputIteratorRef/reference.adoc[`reference`] | This `typedef` is an alias for `void` (type‐erased output iterator). | xref:BloombergLP/bslfmt/Format_ContextOutputIteratorRef/value_type.adoc[`value_type`] | This `typedef` is an alias for the character type `t_CHAR`. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslfmt/Format_ContextOutputIteratorRef/2constructor.adoc[`Format_ContextOutputIteratorRef`] [.small]#[constructor]# | Create an instance of this type. The specified `base` should be a pointer to an `Format_ContextOutputIteratorImpl` type whose lifetime must outlive that of the constructed instance. | xref:BloombergLP/bslfmt/Format_ContextOutputIteratorRef/operator_assign.adoc[`operator=`] | Call `put(x)` on the referenced `Format_ContextOutputIteratorImpl` instance. This will result in the value being written to the underlying iterator referenced by the `Format_ContextOutputIteratorImpl` instance, and that underlying iterator then being incremented. | xref:BloombergLP/bslfmt/Format_ContextOutputIteratorRef/operator_star.adoc[`operator*`] | Return a reference to `*this`. This method is provided to enable this type to satisfy the requirements of [output.iterators]. | xref:BloombergLP/bslfmt/Format_ContextOutputIteratorRef/operator_inc-03.adoc[`operator++`] | Do nothing. This method is provided to enable this type to satisfy the requirements of [output.iterators]. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#