UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TypeCompatibleBytes.h File Reference
#include "CoreTypes.h"
#include <string.h>
#include <new>
#include <type_traits>

Go to the source code of this file.

Classes

struct  TAlignedBytes< Size, Alignment >
 
struct  TTypeCompatibleBytes< ElementType >
 
struct  TTypeCompatibleBytes< T & >
 
struct  TTypeCompatibleBytes< void >
 

Functions

template<typename ToType , typename FromType , std::enable_if_t< sizeof(ToType)==sizeof(FromType) &&std::is_trivially_copyable_v< ToType > &&std::is_trivially_copyable_v< FromType > > * = nullptr>
ToType BitCast (const FromType &From)
 

Function Documentation

◆ BitCast()

template<typename ToType , typename FromType , std::enable_if_t< sizeof(ToType)==sizeof(FromType) &&std::is_trivially_copyable_v< ToType > &&std::is_trivially_copyable_v< FromType > > * = nullptr>
ToType BitCast ( const FromType &  From)
inline