A wrapper for a list of cached instances of a type T
.
The wrapper is recursion-reentrant: several instances are kept, so
at each depth of reentrance we are reusing the instance for that.
An instance is created upon creating this object, and more instances are allocated dynamically, on demand, when reentrance occurs.
Not thread safe.
Ported from scala.reflect.internal.util.ReusableInstance
- Companion:
- object