Asposecpplib
System::detail::cast_statically_or_dynamically< From, To, convertible > Struct Template Reference

Performs cheapest cast possible from static_cast and dynamic_cast. More...

Static Public Member Functions

static To * cast (From *pointer)
 Performs actual pointer casting using dynamic_cast. More...
 

Detailed Description

template<typename From, typename To, bool convertible = is_static_castable<From, To>::value>
struct System::detail::cast_statically_or_dynamically< From, To, convertible >

Performs cheapest cast possible from static_cast and dynamic_cast.

Template Parameters
FromSource type.
ToDestination type.
convertibleTemplate implementation selection variable.

Member Function Documentation

◆ cast()

template<typename From , typename To , bool convertible = is_static_castable<From, To>::value>
static To* System::detail::cast_statically_or_dynamically< From, To, convertible >::cast ( From *  pointer)
inlinestatic

Performs actual pointer casting using dynamic_cast.

Parameters
pointerPointer to cast.
Returns
Cast pointer.