MCPcopy Create free account
hub / github.com/ArashPartow/exprtk / myfunc

Class myfunc

exprtk_simple_example_05.cpp:27–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26template <typename T>
27struct myfunc : public exprtk::ifunction<T>
28{
29 using exprtk::ifunction<T>::operator();
30
31 myfunc()
32 : exprtk::ifunction<T>(2)
33 { exprtk::disable_has_side_effects(*this); }
34
35 T operator()(const T& v1, const T& v2)
36 {
37 return T(1) + (v1 * v2) / T(3);
38 }
39};
40
41template <typename T>
42T myotherfunc(T v0, T v1, T v2)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected