Quantify
An extensible C++ units library
Loading...
Searching...
No Matches
quantify::has_scale Concept Referenceexport

Predicate that checks if a type defines a scale for itself. More...

Concept definition

template<typename S>
concept quantify::has_scale = requires { typename S::scale; }
Predicate that checks if a type defines a scale for itself.
Definition preface.cppm:99

Detailed Description

Predicate that checks if a type defines a scale for itself.

Units and scales both satisfy this concept since the former defines their measurement scale and the latter references itself.

Template Parameters
S

Definition at line 99 of file preface.cppm.