ModErn Text Analysis
META Enumerates Textual Applications
|
Template class to facilitate polymorphic cloning. More...
#include <clonable.h>
Public Member Functions | |
virtual std::unique_ptr< Root > | clone () const |
Clones the given object. More... | |
Template class to facilitate polymorphic cloning.
Use in place of an ordinary base class, with first parameter being the root of the inheritance hierarchy, the second being the desired base class, and the third being the current class (CRTP style).
|
inlinevirtual |
Clones the given object.
This requires that the Derived class be capable of being copy-constructed.