AlignArbitrary

Aligns a value to the nearest higher multiple of 'Alignment'.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/AlignmentTemplates.h

Include

#include "Templates/AlignmentTemplates.h"

Syntax

template<typename T>
constexpr T AlignArbitrary
(
    T Val,
    uint64 Alignment
)

Remarks

Aligns a value to the nearest higher multiple of 'Alignment'.

Returns

The value aligned up to the specified alignment.

Parameters

Parameter

Description

Val

The value to align.

Alignment

The alignment value, can be any arbitrary value.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss