[#BloombergLP-bslfmt-FormatSpecificationParser-parse]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::xref:BloombergLP/bslfmt/FormatSpecificationParser.adoc[FormatSpecificationParser]::parse
:relfileprefix: ../../../
:mrdocs:

Parse the string contained by the specified input&sol;output `parseContext` to extract the items indicated by the specified `sections`, update this object with the parsing result and update the iterator held by `parseContext` to point to the start of the unparsed section of the string&period; In the event of an error throw a `format&lowbar;error` exception&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;PARSE&lowbar;CONTEXT&gt;
constexpr
void
parse(
    t&lowbar;PARSE&lowbar;CONTEXT* parseContext,
    xref:BloombergLP/bslfmt/FormatSpecificationParserEnums/Sections.adoc[Sections] sections);
----


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