Main MRPT website > C++ reference for MRPT 1.5.9
List of all members | Static Public Member Functions
mrpt::ptr_cast< CAST_TO > Struct Template Reference

Detailed Description

template<typename CAST_TO>
struct mrpt::ptr_cast< CAST_TO >

Converts a smart pointer Base::Ptr to Derived::Ptr, in a way compatible with MRPT >=1.5.4 and MRPT 2.x series.

Definition at line 325 of file CObject.h.

#include <mrpt/utils/CObject.h>

Static Public Member Functions

template<typename CAST_FROM_PTR >
static CAST_TO::Ptr from (const CAST_FROM_PTR &ptr)
 

Member Function Documentation

◆ from()

template<typename CAST_TO >
template<typename CAST_FROM_PTR >
static CAST_TO::Ptr mrpt::ptr_cast< CAST_TO >::from ( const CAST_FROM_PTR &  ptr)
inlinestatic

Definition at line 328 of file CObject.h.




Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020