header_utils
Loading...
Searching...
No Matches
ghassanpl::bit_castable Concept Reference

Whether two types can be safely bit_cast between each other. More...

#include <bits.h>

Concept definition

template<typename TO, typename FROM>
concept bit_castable = std::is_trivially_copyable_v<TO> && std::is_trivially_copyable_v<FROM> && sizeof(TO) == sizeof(FROM)
Whether two types can be safely bit_cast between each other.
Definition bits.h:52

Detailed Description

Whether two types can be safely bit_cast between each other.

Definition at line 52 of file bits.h.