GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::physics::unit Concept Reference

Concept that checks if a type is a valid physical unit type. More...

#include <GREM/physics/quantities.hpp>

Concept definition

template<typename T>
concept grem::physics::unit = requires {
typename std::remove_reference_t<T>::DimensionType;
{ std::remove_reference_t<T>::DIMENSION } -> dimension;
{ std::remove_reference_t<T>::DIMENSION } -> same_as<const typename std::remove_reference_t<T>::DimensionType&>;
{ std::remove_reference_t<T>::MAGNITUDE } -> magnitude;
{ std::remove_reference_t<T>::MAGNITUDE } -> same_as<const typename std::remove_reference_t<T>::MagnitudeType&>;
} && !requires { typename std::remove_reference_t<T>::Unit; }
Concept that checks if a type is a valid physical dimension type.
Definition quantities.hpp:40
Concept that checks if a type is a valid physical unit type.
Definition quantities.hpp:515
Definition concepts.hpp:35

Detailed Description

Concept that checks if a type is a valid physical unit type.

Template Parameters
Tthe type to check.