typeEnforcedRef

Create a reference with type enforcement.

The resulting reference will check for returned object to be compliant with specified T type, otherwise a not found exception is thrown.

  1. auto typeEnforcedRef(RuntimeReference reference)
    typeEnforcedRef
    (
    T
    )
  2. class TypeEnforcedRuntimeReference(T)

Parameters

reference RuntimeReference

reference to be enforced with expected type

T

expected type returned from container

Return Value

Type: auto

TypeEnforcedRuntimeReference!T enforced reference with type.

Meta