7#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_BIT_BIT_CAST_HPP_
8#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_BIT_BIT_CAST_HPP_
16#include "arene/base/compiler_support/platform_queries.hpp"
17#include "arene/base/compiler_support/preprocessor.hpp"
18#include "arene/base/constraints/constraints.hpp"
19#include "arene/base/stdlib_choice/enable_if.hpp"
20#include "arene/base/stdlib_choice/is_trivially_copyable.hpp"
27#if ARENE_IS_ON(ARENE_HAS_CONSTEXPR_BIT_CAST)
28#define ARENE_BIT_CAST_CONSTEXPR constexpr
29#include "arene/base/bit/detail/bit_cast_builtin.hpp"
31#define ARENE_BIT_CAST_CONSTEXPR
32#include "arene/base/bit/detail/bit_cast_memcpy.hpp"
41namespace bit_cast_detail {
57 std::enable_if_t<
sizeof(From) ==
sizeof(To)>,
58 std::enable_if_t<std::is_trivially_copyable<From>::value>,
59 std::enable_if_t<std::is_trivially_copyable<To>::value && (
sizeof(From*) != 0)>> =
nullptr>
61 return ::arene::base::bit_cast_detail::bit_cast<To>(from);
#define ARENE_BIT_CAST_CONSTEXPR
Definition bit_cast.hpp:31
Definition array_exceptions_disabled.cpp:11
constexpr bit_cast_detail::do_bit_cast< To > bit_cast
Reinterpret the object representation of one type as that of another.
Copyright 2026, Toyota Motor Corporation.
Definition array_exceptions_disabled.cpp:10