[#BloombergLP-bslfmt-MockFormatContext-arg-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::xref:BloombergLP/bslfmt/MockFormatContext.adoc[MockFormatContext]::arg
:relfileprefix: ../../../
:mrdocs:

Return the argument with the specified `id` or the default constructed object if there is no argument with such `id`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslfmt/MockFormatContext/Arg-03.adoc[MockFormatContext&lt;t&lowbar;CHAR&gt;::Arg]
arg(size&lowbar;t id) const noexcept;
----

== Return Value

the argument at position `id`, or a default&hyphen;constructed `Arg`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *id*
| zero&hyphen;based argument index
|===


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