[#BloombergLP-bslfmt-MockFormatContext_Iterator-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::xref:BloombergLP/bslfmt/MockFormatContext_Iterator.adoc[MockFormatContext&lowbar;Iterator]::MockFormatContext&lowbar;Iterator
:relfileprefix: ../../../
:mrdocs:

Create an iterator over a bounded output buffer&period;

== Synopsis

Declared in `&lt;bslfmt&lowbar;mockformatcontext&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
MockFormatContext&lowbar;Iterator(
    t&lowbar;CHAR* ptr,
    t&lowbar;CHAR* max);
----

== Description

The iterator points to the specified `ptr` and has the specified `max` as the end of the buffer available for output&period; The behavior is undefined unless `max &gt;&equals; ptr`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ptr*
| pointer to the current position in the output buffer
| *max*
| pointer to the end of the output buffer
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
