muu/bit_cast.h file

Contains the definition of muu::bit_cast().

Namespaces

namespace muu
The root namespace for all muu functions and types.
namespace muu::build
Build environment information (compiler, date/time, support for various things...)

Functions

template <typename To, typename From>
auto bit_cast(const From& from) -> To constexpr noexcept
Equivalent to C++20's std::bit_cast.

Variables

bool supports_constexpr_bit_cast constexpr
True if using bit_cast() in constexpr contexts is supported on this compiler.