29namespace func_sketch::math {
42 template <BinaryOperatorType T>
45 get_name_([](const utilities::Any& obj) -> std::string_view {
46 return obj.get<T>().
name();
50 obj.
get<T>()(left, right, result);
Definition of BinaryOperatorType concept.
GetNameSignature * get_name_
Function to get the name of the operator.
BinaryOperator(T operator_object)
Constructor.
utilities::Any operator_
Operator object.
std::string_view( const utilities::Any &) GetNameSignature
Signature of function to get the name of the operator.
ScalarOperatorSignature * scalar_operator_
Function to operate on a pair of scalars.
void( const utilities::Any &, const Number &, const Number &, Number &) ScalarOperatorSignature
Signature of function to operate on a pair of scalars.
void operator()(const Number &left, const Number &right, Number &result) const
Operate on a pair of scalars.
std::string_view name() const
Get the name of the operator.
Class to store any type of value.
const T & get() const
Get the stored value.
Definitions of common types.
std::variant< Integer, Real, Complex > Number
Type of numbers.