Template Struct ClonableBase

Struct Documentation

template<class Base>
struct cpphots::interfaces::ClonableBase

Class declaring the clonable interface.

Other interface should subclass from this with CRTP.

Template Parameters

Base – class to which the interface should be added

Public Functions

virtual Base *clone() const = 0

Clone the object.

Returns

pointer to the new object