Flyweight.unload

If Flyweight identified by id is loaded, manually unload it and reset reference count/loaded flag.

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

Meta