fpmas 1.6
Static Public Member Functions | List of all members
fpmas::utils::detail::PtrWrapperCastImpl< T, T > Struct Template Reference

#include <cast.h>

Static Public Member Functions

static api::utils::PtrWrapper< T > cast (T *ptr)
 

Detailed Description

template<typename T>
struct fpmas::utils::detail::PtrWrapperCastImpl< T, T >

PtrWrapperCastImpl specialization when T1 == T2.

In this case, no dynamic_cast is used, so the source pointer just needs to be wrapped in a PtrWrapper instance.

Member Function Documentation

◆ cast()

template<typename T >
static api::utils::PtrWrapper< T > fpmas::utils::detail::PtrWrapperCastImpl< T, T >::cast ( T *  ptr)
inlinestatic

Wraps ptr in an fpmas::api::utils::PtrWrapper instance.


The documentation for this struct was generated from the following file: