39 if (
this == &o)
return *
this;
44 #if (__cplusplus>199711L) 48 poly_ptr<T> &
operator =(
const poly_ptr<T> && o) {
49 if (
this == &o)
return *
this;
50 ptr_base_t::operator =(o);
poly_ptr< T > & operator=(const poly_ptr< T > &o)
copy operator
internal::CopyCloner< T > copier_t
poly_ptr(const poly_ptr< T > &o)
copy ctor: makes a copy of the object via clone()
poly_ptr(T *ptr)
Ctor from a pointer; takes ownership.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
poly_ptr()
Default ctor; init to nullptr.
internal::generic_copier_ptr< T, internal::CopyCloner< T > > ptr_base_t
Smart pointer for polymorphic classes with a clone() method.