CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::CArithmetic Concept Reference

A concept type that checks if a given type T has arithmetic properties. More...

#include <CeresEngine/Concepts.hpp>

Concept definition

template<typename T>
concept CeresEngine::CArithmetic = requires(T a, T b) {
a + b;
a - b;
a* b;
a / b;
}
A concept type that checks if a given type T has arithmetic properties.
Definition Concepts.hpp:21

Detailed Description

A concept type that checks if a given type T has arithmetic properties.

This means it can be addded, subtracted, multiplied and divided by.

Template Parameters
Tthe type to be checked against