[#BloombergLP-bdldfp-Decimal_FormatterSpecification-parse]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/Decimal_FormatterSpecification.adoc[Decimal&lowbar;FormatterSpecification]::parse
:relfileprefix: ../../../
:mrdocs:

Parse the format specification from the specified context&period;

== Synopsis

Declared in `&lt;bdldfp&lowbar;decimal&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* context);
----

== Description

Parse a decimal floating point format string using the iterator&hyphen;range from the specified `context` and if successful load the results into this object as well as set its status to `e&lowbar;PARSED`&semi; otherwise, if the format specification denoted by the `context` iterator&hyphen;range is not a valid decimal floating point format specification throw a `bsl&colon;&colon;format&lowbar;error` exception&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *context*
| format context used to resolve nested arguments
|===


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