System::ForceStaticCast methode

System::ForceStaticCast method

Voert een echte static cast uit op SmartPtr objecten.

template<typename TTo,typename TFrom> CastResult<TTo>::type System::ForceStaticCast(SmartPtr<TFrom> const &obj)
ParameterBeschrijving
TToDoel‑pointee type.
TFromBron‑pointee type.
ParameterTypeBeschrijving
objSmartPtr<TFrom> const&Bron‑pointer.

ReturnValue

Cast‑resultaat als cast is toegestaan, anders is het gedrag ongedefinieerd.

Zie ook