33 static constexpr bool value =
true;
38template <
typename To,
typename From>
40 static_assert(
sizeof(To) ==
sizeof(From),
"bit_cast: types must have the same size");
uptr ptr_to_int(T *ptr) noexcept
To * bit_cast_ptr(void *storage) noexcept
To bit_cast(const From &from) noexcept
T * int_to_ptr(uptr value) noexcept
static constexpr bool value
static constexpr bool value
static constexpr bool value
static constexpr bool value
static constexpr bool value
static constexpr bool value