ArithmeticType Concept Reference

Developer Documentation: MeltPoolDG::ArithmeticType Concept Reference
Developer Documentation
MeltPoolDG::ArithmeticType Concept Reference

#include <concepts.hpp>

Concept definition

template<typename T>
concept MeltPoolDG::ArithmeticType = requires(T a, T b) {
{
a + b
} -> std::convertible_to<T>;
{
a - b
} -> std::convertible_to<T>;
{
a *b
} -> std::convertible_to<T>;
{
a / b
} -> std::convertible_to<T>;
}
Definition concepts.hpp:13

Detailed Description

A concept defining the requirements for a type to be considered an arithmetic type. This concept is used to ensure that types used in mathematical operations support basic arithmetic operations such as addition, subtraction, multiplication, and division.