Flyweight.get

Get the Flyweight instance for object identified by id, constructing it if not loaded yet.

struct Flyweight(T, alias makeFunc, alias disposeFunc, alias idNames, const FlyweightOptions options = FlyweightOptions.none)
static
get
(
ID id
)
out { assert (isLoaded(id)); }
if (
isCallable!makeFunc &&
isCallable!disposeFunc
)

Meta