|
swift
|
Memoizer for Ts. Other types are passed through. More...
#include <memotable.h>
Public Member Functions | |
| template<typename T> | |
| decltype(auto) | maybeMemoize (const T &member) |
| If T is in Ts, return the index of member in the memo table. Otherwise, return member. | |
| template<typename T> | |
| const CSequence< T > & | getTable () const |
| Return the values in the T table as a flat list. | |
Memoizer for Ts. Other types are passed through.
Definition at line 48 of file memotable.h.
|
inline |
Return the values in the T table as a flat list.
Definition at line 67 of file memotable.h.
|
inline |
If T is in Ts, return the index of member in the memo table. Otherwise, return member.
Definition at line 53 of file memotable.h.