|
template<int Int, int Frac, typename Raw = detail::select_int_t<Int + Frac>, std::convertible_to< fixed< Int, Frac, Raw > > Src> |
constexpr maybe< fixed< Int, Frac, Raw > > | make_fixed (Src src) |
| Convenience overload.
|
|
template<int Int, int Frac, typename Raw = detail::select_uint_t<Int + Frac>, std::convertible_to< fixed< Int, Frac, Raw > > Src> |
constexpr maybe< fixed< Int, Frac, Raw > > | make_ufixed (Src src) |
| Convenience overload (unsigned version).
|
|
template<int Int, int Frac, typename Raw = fxd::detail::select_int_t<Int + Frac>, fixed_point Src> |
constexpr maybe< fixed< Int, Frac, Raw > > | fixed_cast (Src src) noexcept |
| Convenience overload.
|
|
template<int Int, int Frac, typename Raw = fxd::detail::select_uint_t<Int + Frac>, fixed_point Src> |
constexpr maybe< fixed< Int, Frac, Raw > > | ufixed_cast (Src src) noexcept |
| Convenience overload (unsigned version).
|
|
template<fixed_point Dst, std::convertible_to< Dst > Src> |
constexpr maybe< Dst > | assign (Dst &dst, Src src) noexcept |
| Assignment.
|
|
template<fixed_point Fxd> |
constexpr maybe< Fxd > | pre_inc (Fxd &f) noexcept |
| Pre-increment (++f ).
|
|
template<fixed_point Fxd> |
constexpr maybe< Fxd > | post_inc (Fxd &f) noexcept |
| Post-increment (f++ ).
|
|
template<fixed_point Fxd> |
constexpr maybe< Fxd > | pre_dec (Fxd &f) noexcept |
| Pre-decrement (--f ).
|
|
template<fixed_point Fxd> |
constexpr maybe< Fxd > | post_dec (Fxd &f) noexcept |
| Post-decrement (f-- ).
|
|