CLAW Library (a C++ Library Absolutely Wonderful) 1.5.5
Public Member Functions

claw::clone< T > Class Template Reference

Function object that clones a pointer. More...

#include <functional.hpp>

Inheritance diagram for claw::clone< T >:
unary_function

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 275 of file functional.hpp.


Member Function Documentation

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

Definition at line 278 of file functional.hpp.

    {
      return new T(*a);
    }

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