[#BloombergLP-bdldfp-DecimalImpUtil-checkLiteral-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::checkLiteral
:relfileprefix: ../../../
:mrdocs:

Generate an error if `t` is not a valid decimal floating&hyphen;point literal&period;

== Synopsis

Declared in `&lt;bdldfp&lowbar;decimalimputil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
void
checkLiteral(TYPE const& t);
----

== Description

Note that this function is intended for use with literals&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *t*
| value used to diagnose an invalid literal
|===


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