[Example 1: // The first signature defines a base quantity.inlineconstexprstruct length final: quantity_spec<dim_length>{} length; // Length is a base quantity.// The second signature defines a derived quantity.inlineconstexprstruct area final: quantity_spec<pow<2>(length)>{} area; // An area equals length by length.// The third and fourth signatures add a leaf to a hierarchy of kinds.inlineconstexprstruct width final: quantity_spec<length>{} width; // Width is a kind of length.// The fourth signature also refines the calculus required for implicit conversions.inlineconstexprstruct angular_measure final:
quantity_spec<dimensionless, arc_length / radius, is_kind>{} angular_measure; // Requires an arc length per radius, not just any quantity of dimension one. — end example]