System::Cast methode

System::Cast method

Voert een cast uit op SmartPtr objecten.

template<typename TTo,typename TFrom> std::enable_if<!IsExceptionWrapper<TTo>::value, typenameCastResult<TTo>::type>::type System::Cast(SmartPtr<TFrom> const &obj)
ParameterBeschrijving
TToDoel‑pointee type.
TFromBron‑pointee type.
ParameterTypeBeschrijving
objSmartPtr<TFrom> const&Bron‑pointer.

ReturnValue

Cast‑resultaat als de cast is toegestaan.

Zie ook