tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
bit_cast.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<typename To, typename From>
requires detail::bitcastable<To, From>
constexpr auto bit_cast (From const &src) noexcept -> To
 Obtain a value of type To by reinterpreting the object representation of from. Every bit in the value representation of the returned To object is equal to the corresponding bit in the object representation of from.