MT Core (C++)
Core library for replacing C++ standard in project usage
Loading...
Searching...
No Matches
mtcore::units::IsUnitValue Concept Reference

Concept to check something is a unit value. More...

#include <base.hpp>

Concept definition

template<typename T>
concept mtcore::units::IsUnitValue = requires(const T &t, const typename T::UnitsType UT) {
{ t.template convert<typename T::UnitsType>() };
{ t.to(UT) };
{ t + t };
{ t - t };
{ t * t };
{ t / t };
{ 1 * t };
{ 1 / t };
{ t * 1 };
{ t / 1 };
{ 1. * t };
{ 1. / t };
{ t * 1. };
{ t / 1. };
}
Concept to check something is a unit value.

Detailed Description

Concept to check something is a unit value.

Definition at line 857 of file units/base.hpp.