dextool.cachetools

Members

Functions

cacheToolsRequire
V cacheToolsRequire(CT aa, K key, V value)

Looks up key; if it exists returns corresponding value else evaluates value, adds it to the associative array and returns it.

require
V require(V[K] aa, K key, V value)

Looks up key; if it exists returns corresponding value else evaluates value, adds it to the associative array and returns it.

Meta

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)

Based on require in object.d in druntime therefor the Boost license.

A convenient function extending cachetools with a common recurring function.