claw::clone< T > Class Template Reference
#include <functional.hpp>
List of all members.
Detailed Description
template<typename T>
class claw::clone< T >
Function object that clones a pointer.
Template arguments :
- T The pointed type (ie.
int
, not int*
.
- Author:
- Julien Jorge
Definition at line 258 of file functional.hpp.
|
Public Member Functions |
T * | operator() (const T *a) const |
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: