Boolean metafunction which detects whether a type is a PrimitiveTransform type or not. More...
#include <traits.hpp>
Boolean metafunction which detects whether a type is a PrimitiveTransform type or not.
is_transform<>
is used by the call<>
transform to determine whether the function types R()
, R(A1)
, and R(A1, A2)
should be passed the expression, state and data parameters (as needed).
Unless specialized for a type T
, is_transform<T>value
is computed as follows:
T
has a nested type proto_is_transform_
that is a typedef for void
, is_transform<T>value
is true
. (Note: this is the case for any type that derives from an instantiation of proto::transform
.) is_transform<T>value
is false
.