$darkmode
#include <cloe/utility/evaluate.hpp>#include <algorithm>#include <functional>#include <string>#include <boost/lexical_cast.hpp>Functions | |
| std::function< bool(double)> | cloe::utility::compile_evaluation (const std::string &s) |
| std::function< bool(double)> | cloe::utility::compile_evaluation (const std::string &op, double val) |
| std::function< bool(double)> cloe::utility::compile_evaluation | ( | const std::string & | s | ) |
Compile an evaluation string into a function that evaluates a single double.
For example:
An out_of_range error is thrown if the operator is not one of the following: ==, !=, <, <=, >, >=