ceil overloads
Declared in <mp-units/math.h>
Computes the smallest quantity with integer representation and unit type To with its number not less than q
template<
Unit auto To,
auto R,
typename Rep>
[[nodiscard]]
constexpr
quantity<detail::clone_reference_with<To>(R), Rep>
ceil(quantity<R, Rep> const& q) noexcept
requires requires { q.force_in(To); } &&
((treat_as_floating_point<Rep> && (requires(Rep v) { ceil(v); }
#if MP_UNITS_HOSTED
|| requires(Rep v) { std::ceil(v); }
#endif
)) ||
(!treat_as_floating_point<Rep> && requires { representation_values<Rep>::one(); }));
» more...
Computes the smallest quantity point with integer representation and unit type To with its number not less than qp
template<
Unit auto To,
auto R,
auto PO,
typename Rep>
[[nodiscard]]
constexpr
QuantityPointOf<quantity_point<R, PO, Rep>::quantity_spec> auto
ceil(quantity_point<R, PO, Rep> const& qp) noexcept
requires requires { qp.force_in(To); } &&
((treat_as_floating_point<Rep> && (requires(Rep v) { ceil(v); }
#if MP_UNITS_HOSTED
|| requires(Rep v) { std::ceil(v); }
#endif
)) ||
(!treat_as_floating_point<Rep> && requires { representation_values<Rep>::one(); }));
» more...
| Name | Description |
|---|---|
| q | Quantity being the base of the operation |
| Name | Description |
|---|---|
| qp | Quantity point being the base of the operation |