Template Function wt::parse_expression

Function Documentation

template<NumericOrBool R>
inline R wt::parse_expression(const std::string &expr)

Parses a math expression defined as the string expr and returns the evaluated result.

Template Parameters:

type – of result, must be either a Numeric or a bool

Returns:

R the evaluated result