swift
Public Member Functions | List of all members
swift::misc::CMemoHelper< Ts >::CMemoizer Class Reference

Memoizer for Ts. Other types are passed through. More...

Inheritance diagram for swift::misc::CMemoHelper< Ts >::CMemoizer:
[legend]

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.
 

Detailed Description

template<typename... Ts>
class swift::misc::CMemoHelper< Ts >::CMemoizer

Memoizer for Ts. Other types are passed through.

Definition at line 48 of file memotable.h.


The documentation for this class was generated from the following file: