#include "CoreTypes.h"
#include <string.h>
#include <type_traits>
Go to the source code of this file.
|
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) |
|
◆ 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 |