[#BloombergLP-bsls-AlignmentFromType]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::AlignmentFromType
:relfileprefix: ../../
:mrdocs:

This `struct` computes the required alignment for the specified `TYPE`&period;

== Synopsis

Declared in `&lt;bsls&lowbar;alignmentfromtype&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
struct AlignmentFromType;
----

== Description

This `struct` computes (at compile time) a constant integral `VALUE` that specifies the required alignment for `TYPE` objects&period; Also provided is a `typedef`, `Type`, that is an alias for a primitive type that has the same alignment requirements as `TYPE`&period;

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsls/AlignmentFromType/Type.adoc[`Type`] 
| Alias for a primitive type that has the same alignment requirement as `TYPE`&period;
|===


== Enums

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsls/AlignmentFromType/_04enum.adoc[`Unnamed enum`] 
| Compile&hyphen;time alignment constants for `TYPE`&period;
|===



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