Template Function librapid::bitCast#

Function Documentation#

template<typename To, typename From>
constexpr To librapid::bitCast(const From &val) noexcept#

Cast the bits of one value directly into another type &#8212; no conversion is performed

Template Parameters
  • To – The type to cast to

  • From – The type to cast from

Parameters

val – The value to cast

Returns

The value bitwise mapped to the new type