Function contained

When objects are registered into a component 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.


id identity of container where to store the object.