UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UseBitwiseSwap.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include <type_traits>
7
11template <typename T>
13{
14 // We don't use bitwise operations for 'register' types because this will force them into memory and be slower.
15 enum { Value = !(std::is_enum_v<T> || std::is_pointer_v<T> || std::is_arithmetic_v<T>) };
16};
Definition UseBitwiseSwap.h:13
@ Value
Definition UseBitwiseSwap.h:15