[#BloombergLP-bslfmt-StandardFormatSpecification-alignment]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::xref:BloombergLP/bslfmt/StandardFormatSpecification.adoc[StandardFormatSpecification]::alignment
:relfileprefix: ../../../
:mrdocs:

Return the requested alignment enumerator&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:BloombergLP/bslfmt/FormatSpecificationParserEnums/Alignment.adoc[StandardFormatSpecification&lt;t&lowbar;CHAR&gt;::Alignment]
alignment() const;
----

== Description

Return the enumerator representing the requested alignment unless the status is not at least `e&lowbar;STATE&lowbar;PARSED` in which case throw a `bsl&colon;&colon;format&lowbar;error` exception indicating that error&period;

== Return Value

the enumerator representing the requested alignment


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