Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::Arithmetic Concept Reference

Concept to check if T supports basic arithmetic operations (+, -, *, /). More...

#include <Concepts.h>

Concept definition

template<typename T>
concept Raven::Arithmetic = requires(T a, T b) {
{ a + b } -> std::same_as<T>;
{ a - b } -> std::same_as<T>;
{ a* b } -> std::same_as<T>;
{ a / b } -> std::same_as<T>;
}
Concept to check if T supports basic arithmetic operations (+, -, *, /).
Definition Concepts.h:86

Detailed Description

Concept to check if T supports basic arithmetic operations (+, -, *, /).

This concept checks if the type T supports basic arithmetic operations between two instances of T.

Template Parameters
TThe type to check.