Cache the results of expensive computations transparently. More...
#include <Memoizer.h>
Public Member Functions | |
Memoizer (const function< RESULT(ARGS...)> &f, CACHE< tuple< ARGS... >, RESULT > &&cache=CACHE< tuple< ARGS... >, RESULT >{}) | |
nonvirtual RESULT | operator() (ARGS... args) |
Cache the results of expensive computations transparently.
TODO: o
o
Definition at line 55 of file Memoizer.h.
Stroika::Foundation::Cache::Memoizer< RESULT, CACHE, ARGS >::Memoizer | ( | const function< RESULT(ARGS...)> & | f, |
CACHE< tuple< ARGS... >, RESULT > && | cache = CACHE<tuple<ARGS...>, RESULT>{} |
||
) |
Definition at line 14 of file Memoizer.inl.
RESULT Stroika::Foundation::Cache::Memoizer< RESULT, CACHE, ARGS >::operator() | ( | ARGS... | args | ) |
Definition at line 20 of file Memoizer.inl.