[#BloombergLP-bsls-AlignmentFromType] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::AlignmentFromType :relfileprefix: ../../ :mrdocs: This `struct` computes (at compile time) a constant integral `VALUE` that specifies the required alignment for `TYPE` objects. Also provided is a `typedef`, `Type`, that is an alias for a primitive type that has the same alignment requirements as `TYPE`. == Synopsis Declared in `<bsls_alignmentfromtype.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> struct AlignmentFromType; ---- == 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`. |=== == Enums [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsls/AlignmentFromType/_04enum.adoc[`Unnamed enum`] | Compile‐time alignment constants for `TYPE`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#