Enum member isTransformer

Check if a policy implements transformer interface.

enum isTransformer(T, X) = is(T == struct) && is(typeof(&T.transform!X) : void function(Locator!(), Storage!(ObjectFactory, string)));

A transformer is a policy that takes a type, and optionally a member of it, and transform it into a component factory using annotations from component, or member.

Parameters

NameDescription
T type to be tested for interface implementation
X a test object that is used to test templated methods of policy

Returns

true if it implements Transformer interface, false otherwise