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>
bool IsAligned
(
T Val,
uint64 Alignment
)
Remarks
Checks if a pointer is aligned to the specified alignment. true if the pointer is aligned to the specified alignment, false otherwise.
Parameters
| Name | Description |
|---|---|
| Val | The value to align. |
| Alignment | The alignment value, must be a power of two. |