7#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_BIT_BIT_CAST_HPP_
8#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_BIT_BIT_CAST_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 {
61 return ::arene::base::bit_cast_detail::bit_cast<To>(from);
106extern constexpr bit_cast_detail::do_bit_cast<To>
bit_cast{};
#define ARENE_BIT_CAST_CONSTEXPR
Definition bit_cast.hpp:31
constexpr bit_cast_detail::do_bit_cast< To > bit_cast
Reinterpret the object representation of one type as that of another.
typename constraints_impl::constraints< EnableIfs... >::type constraints
Helper used to express template constraints in a consistent way using std::enable_if_t.
Definition constraints.hpp:51
Definition accumulate.hpp:36
typename enable_if< Condition, Type >::type enable_if_t
Type alias to support constraining templates. Is an alias for the specified type if the Condition is ...
Definition enable_if.hpp:41