Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CopyUsingClone< T > Struct Template Reference

#include <allocatingpointer.h>

Inheritance diagram for CopyUsingClone< T >:

Inheritance graph
[legend]
Collaboration diagram for CopyUsingClone< T >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
struct CopyUsingClone< T >

Returns a copy of the given object.

Calls the nominal types' clone() operation, which if virtual and implemented in all derived types will construct a clone object of the actual type instead of the nominal type. This makes it possible to work with unknown derived classes. Of course, to be able to use this class, type T must support such a clone() operation.

Definition at line 33 of file allocatingpointer.h.

Public Methods

T * operator() (const T &value)


The documentation for this struct was generated from the following file:
Generated on Mon Jan 20 02:36:58 2003 for RF-LISSOM by doxygen1.3-rc2