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>

template<class t_VALUE>
class Format_ContextOutputIteratorRef;

Type Aliases

Name

Description

difference_type

This typedef is an alias for void (type‐erased output iterator).

iterator_category

This typedef is an alias for bsl::output_iterator_tag.

pointer

This typedef is an alias for void (type‐erased output iterator).

reference

This typedef is an alias for void (type‐erased output iterator).

value_type

This typedef is an alias for the character type t_CHAR.

Member Functions

Name

Description

Format_ContextOutputIteratorRef [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.

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.

operator*

Return a reference to *this. This method is provided to enable this type to satisfy the requirements of [output.iterators].

operator++

Do nothing. This method is provided to enable this type to satisfy the requirements of [output.iterators].

Created with MrDocs