claw::clone< T > Class Template Reference

Function object that clones a pointer. More...

#include <functional.hpp>

List of all members.

Public Member Functions

T * operator() (const T *a) const

Detailed Description

template<typename T>
class claw::clone< T >

Function object that clones a pointer.

Template arguments :

Remarks:
Use this function object to copy your container of pointers.
Author:
Julien Jorge

Definition at line 258 of file functional.hpp.


Member Function Documentation

template<typename T >
T* claw::clone< T >::operator() ( const T *  a  )  const [inline]

Definition at line 261 of file functional.hpp.

00262     {
00263       return new T(*a);
00264     }


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

Generated on 9 Nov 2009 for CLAW Library (a C++ Library Absolutely Wonderful) by  doxygen 1.6.1