FuncSketch
Loading...
Searching...
No Matches
func_sketch::math::BinaryOperatorType Concept Reference

Concept of binary operator types. More...

#include <func_sketch/math/binary_operator_type.h>

Concept definition

template<typename T>
requires requires(const T& operator_object) {
{ operator_object.name() } -> std::convertible_to<std::string_view>;
};
requires requires(const T& operator_object, const Number& left,
const Number& right, Number& result) {
{ operator_object(left, right, result) } -> std::same_as<void>;
};
}
std::variant< Integer, Real, Complex > Number
Type of numbers.
Concept of binary operator types.

Detailed Description

Concept of binary operator types.

Template Parameters
TType of the operator object.

Definition at line 35 of file binary_operator_type.h.