BloombergLP::bslfmt::MockFormatContext_Iterator

This class template provides an output iterator to the MockFormatContext output buffer allowing appending formatted data.

Synopsis

Declared in <bslfmt_mockformatcontext.h>

template<class t_CHAR>
class MockFormatContext_Iterator;

Type Aliases

NameDescription
difference_type Difference type for iterator arithmetic.
iterator_category Iterator category tag (output iterator).
pointer Pointer to a character in the output buffer.
reference Reference to a character in the output buffer.
value_type Character type stored by the iterator.

Member Functions

NameDescription
MockFormatContext_Iterator [constructor]Create an iterator, pointing to the specified ptr and having the specified max as the end of the buffer available for output. The behavior is undefined unless max >=ptr.
operator* Return a reference to the character referred to by this iterator.
operator++ Increment operators
rawPointer Return a pointer pointing to the character referred to by this iterator.