Navigation
API > API/Runtime > API/Runtime/Core
Description
Reverses the order of the bits of a value. This is a constrained template to ensure that no undesirable conversions occur. Overloads for other types can be added in the same way.
| Name | ReverseBits |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/UnrealTemplate.h |
| Include Path | #include "Templates/UnrealTemplate.h" |
template<typename T, std::enable_if_t<(std::is_same_v< T, uint32 >), int >>
T ReverseBits
(
T Bits
)
The bit-swapped value.
Parameters
| Name | Remarks |
|---|---|
| Bits | The value to bit-swap. |