LibreOffice Module lotuswordpro (master) 1
Classes | Namespaces | Functions
clone.hxx File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  detail::has_clone< T >
 
struct  detail::has_clone< T >::no
 
struct  detail::cloner< T, HasClone >
 
struct  detail::cloner< T, true >
 

Namespaces

namespace  detail
 

Functions

template<typename T >
T * clone (T *const other)
 Creates a new copy of the passed object. More...
 

Function Documentation

◆ clone()

template<typename T >
T * clone ( T *const  other)

Creates a new copy of the passed object.

If other is 0, just returns 0. Otherwise, if other has function named clone with signature T* (T::*)() const, the function is called. Otherwise, copy constructor is used.

Returns
0 or newly allocated object

Definition at line 64 of file clone.hxx.

References clone().

Referenced by clone(), and LwpPara::RegisterStyle().