CLAW Library (a C++ Library Absolutely Wonderful) 1.5.5
|
Function object that clones a pointer. More...
#include <functional.hpp>
Public Member Functions | |
T * | operator() (const T *a) const |
Function object that clones a pointer.
Template arguments:
int
, not int*
.Definition at line 275 of file functional.hpp.
T* claw::clone< T >::operator() | ( | const T * | a | ) | const [inline] |
Definition at line 278 of file functional.hpp.
{ return new T(*a); }