5 Quantities library [qties]

5.5 Helpers [qty.helpers]

consteval bool converts-to-base-subobject-of(std::meta type, std::meta template_name);
Preconditions: is_type(type) && is_template(template_name) is true.
Returns: true if [:type:] has an unambiguous and accessible base that is a specialization of [:template_name:], and false otherwise.