System::CovariantCast method

System::CovariantCast method

Performs covariant cast from some object to covariant interface which it implements.

template<class From,class To> auto System::CovariantCast(const From &from)
ParameterDescription
FromType of the interface to cast from.
ToType of the interface to cast to.
ParameterTypeDescription
fromconst From&Object that implements interface of type From to cast from.

ReturnValue

Proxy adapter that implements To interface and stores from object inside

See Also