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

Performs cheapest cast possible from static_cast and dynamic_cast. Specialization for convertible = true;. More...

Static Public Member Functions

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

Detailed Description

template<typename From, typename To>
struct System::detail::cast_statically_or_dynamically< From, To, true >

Performs cheapest cast possible from static_cast and dynamic_cast. Specialization for convertible = true;.

Template Parameters
FromSource type.
ToDestination type.

Member Function Documentation

◆ cast()

template<typename From , typename To >
static To* System::detail::cast_statically_or_dynamically< From, To, true >::cast ( From *  pointer)
inlinestatic

Performs actual pointer casting using static_cast.

Parameters
pointerPointer to cast.
Returns
Cast pointer.