|
|
using | CachedData = std::pair< T, U > |
| |
|
using | Comparator = std::function< bool(T const &, T const &)> |
| |
|
using | Releaser = std::function< U(U const &)> |
| |
|
|
| Cache (Comparator &&t_comparator=[](T const &a, T const &b) { return a==b;}, Releaser &&t_releaser=[](U const &res) { return res;}) |
| |
|
template<class Calculator > |
| U | calculate (T const &input, Calculator &&calc) |
| |
|
auto | find (T const &key) |
| |
|
auto | find (T const &key) const |
| |
|
|
U const & | add (T const &key, U const &value) |
| |
|
|
std::vector< CachedData > | cached |
| |
|
Comparator | comparator |
| |
|
Releaser | releaser |
| |
The documentation for this class was generated from the following file: