MCPcopy Create free account
hub / github.com/ArashPartow/exprtk / operator()

Method operator()

exprtk_simple_example_17.cpp:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 { ::srand(static_cast<unsigned int>(time(NULL))); }
35
36 inline T operator()()
37 {
38 // Note: Do not use this in production
39 // Result is in the interval [0,1)
40 return T(::rand() / T(RAND_MAX + 1.0));
41 }
42};
43
44template <typename T>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected