Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
non_builtin Namespace Reference

Typedefs

template<class From, class To>
using bit_castable_to_t

Functions

template<class T, class F>
bit_castable_to_t< F, T > bit_cast (const F &src) noexcept

Typedef Documentation

◆ bit_castable_to_t

template<class From, class To>
using non_builtin::bit_castable_to_t
Initial value:
std::enable_if_t<
sizeof(From) == sizeof(To)
&& std::is_trivially_copyable_v<From>
&& std::is_trivially_copyable_v<To>, To>

Function Documentation

◆ bit_cast()

template<class T, class F>
bit_castable_to_t< F, T > non_builtin::bit_cast ( const F & src)
noexcept