System::ForceStaticCast Methode

System::ForceStaticCast method

Führt ein echtes static_cast auf SmartPtr-Objekten durch.

template<typename TTo,typename TFrom> CastResult<TTo>::type System::ForceStaticCast(SmartPtr<TFrom> const &obj)
ParameterBeschreibung
TToZiel-Pointee-Typ.
TFromQuell-Pointee-Typ.
ParameterTypBeschreibung
objSmartPtr<TFrom> const&Quellzeiger.

ReturnValue

Das Cast-Ergebnis, falls das Casten erlaubt ist; andernfalls ist das Verhalten undefiniert.

Siehe auch