ForceStaticCast()
System::ForceStaticCast(SmartPtr<TFrom> const&) function
Performs real static cast on SmartPtr objects.
template<typename TTo,typename TFrom> CastResult<TTo>::type System::ForceStaticCast(SmartPtr<TFrom> const &obj)
Template parameters
Parameter | Description |
---|---|
TTo | Target pointee type. |
TFrom | Source pointee type. |
Arguments
Parameter | Type | Description |
---|---|---|
obj | SmartPtr<TFrom> const& | Source pointer. |
Return Value
Cast result if cast is allowed, otherwise the behavior is undefined.
See Also
- Class SmartPtr
- Struct CastResult
- Namespace System
- Library Aspose.Slides