Function contained

When objects are registered into an aggregate container, this annotation marks in which sub-container it is required to store.

auto ContainedAnnotation contained (
  string id
) pure nothrow @nogc @safe;

This function is a convenince function to automatically infer required types for underlying annotation.

Parameters

NameDescription
id identity of container where to store the object.