C++ Mathematical Expression Library (ExprTk) http://www.partow.net/programming/exprtk/index.html
This commit is contained in:
parent
71029f7f97
commit
8e713c557a
11
readme.txt
11
readme.txt
|
@ -1173,12 +1173,12 @@ In those situations, ExprTk can perform compile-time type checking to
|
||||||
validate that function invocations are carried out using the correct
|
validate that function invocations are carried out using the correct
|
||||||
sequence of parameters. Furthermore performing the checks at compile
|
sequence of parameters. Furthermore performing the checks at compile
|
||||||
-time rather than at run-time (aka every time the function is invoked)
|
-time rather than at run-time (aka every time the function is invoked)
|
||||||
will result expression evaluation performance gains.
|
will result in expression evaluation performance gains.
|
||||||
|
|
||||||
Compile-time type checking can be requested by passing a string
|
Compile-time type checking can be requested by passing a string
|
||||||
representing the desired parameter sequence to the constructor of the
|
representing the desired parameter sequence to the constructor of the
|
||||||
igeneric_function. The following example demonstrates how this can be
|
igeneric_function. The following example demonstrates how this can be
|
||||||
done:
|
achieved:
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct too : public exprtk::igeneric_function<T>
|
struct too : public exprtk::igeneric_function<T>
|
||||||
|
@ -1206,9 +1206,10 @@ exactly four parameters in the following sequence:
|
||||||
(d) Scalar
|
(d) Scalar
|
||||||
|
|
||||||
|
|
||||||
One further refinement to the type checking facility is possibility of
|
One further refinement to the type checking facility is the
|
||||||
a variable number of trailing common types which can be accomplished
|
possibility of a variable number of trailing common types which can be
|
||||||
by using a wildcard '*' at the end of the sequence definition.
|
accomplished by using a wildcard '*' at the end of the sequence
|
||||||
|
definition.
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct too : public exprtk::igeneric_function<T>
|
struct too : public exprtk::igeneric_function<T>
|
||||||
|
|
Loading…
Reference in New Issue