BloombergLP::bslfmt::MockFormatContext_Iterator::MockFormatContext_Iterator

Create an iterator over a bounded output buffer.

Synopsis

Declared in <bslfmt_mockformatcontext.h>

MockFormatContext_Iterator(
    t_CHAR* ptr,
    t_CHAR* max);

Description

The iterator points to the specified ptr and has the specified max as the end of the buffer available for output. The behavior is undefined unless max >= ptr.

Parameters

NameDescription
ptrpointer to the current position in the output buffer
maxpointer to the end of the output buffer