System::ConstCast-methode

System::ConstCast method

Einde van verouderde casts.

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

ReturnValue

Castresultaat als cast is toegestaan, anders nullptr.

Opmerkingen

Voert const-cast uit op SmartPtr objecten.

Zie ook