Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Templates
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Templates/AlignmentTemplates.h |
| Include | #include "Templates/AlignmentTemplates.h" |
template<typename T>
T Align
(
T Val,
uint64 Alignment
)
Remarks
Aligns a value to the nearest higher multiple of 'Alignment', which must be a power of two. The value aligned up to the specified alignment.
Parameters
| Name | Description |
|---|---|
| Val | The value to align. |
| Alignment | The alignment value, must be a power of two. |