24#include <unordered_map>
30namespace func_sketch::math {
47 template <MathFunctionType T>
49 functions_.emplace(function.name(), std::forward<T>(function));
58 [[nodiscard]] std::optional<MathFunction>
get(
59 const std::string& name)
const {
69 std::unordered_map<std::string, MathFunction>
functions_;
std::unordered_map< std::string, MathFunction > functions_
List of mathematical functions.
MathFunctionList()=default
Constructor.
void emplace(T &&function)
Append a mathematical function to the list.
std::optional< MathFunction > get(const std::string &name) const
Get a mathematical function from the list.
Definition of MathFunction class.
Definition of MathFunctionType concept.