struct OpenHashMap(K, V = void, alias hasher = hashOf, string keyEqualPred = defaultKeyEqualPredOf!(K), alias Allocator = Mallocator.instance, bool borrowChecked = false, bool useSmallLinearSearch = true, bool usePrimeCapacity = false)
scope const return @trusted
const(Class)
tryGetElementFromCtorParams
Try to retrieve class-element of type Class constructed with parameters params.
Typically used to implement (polymorphic) caching of class-types without the need for GG-allocating a temporary instance of a class-element potentially already stored in this set.
Polymorphic caching can be realized by setting hasher to hash_functions.hashOfPolymorphic.