Function call operators

Synopses

Declared in <mp‐units/framework/quantity_spec.h>

template<
    typename Self,
    typename FwdQ,
    Quantity Q = std::remove_cvref_t<FwdQ>>
requires (mp_units::explicitly_convertible(Q::quantity_spec, Self{})) &&
            requires { typename quantity<make_reference(Self{}, Q::unit), typename Q::rep>; }
[[nodiscard]]
constexpr
Quantity auto
operator()(this
    Self,
    FwdQ&& q);
template<
    typename Self,
    typename FwdQP,
    QuantityPoint QP = std::remove_cvref_t<FwdQP>>
requires (mp_units::explicitly_convertible(QP::quantity_spec, Self{})) &&
            requires { typename quantity_point<make_reference(Self{}, QP::unit), QP::point_origin, typename QP::rep>; }
[[nodiscard]]
constexpr
QuantityPoint auto
operator()(this
    Self self,
    FwdQP&& qp);

Created with MrDocs