Template Struct Clonable

Inheritance Relationships

Base Type

  • public Base

Struct Documentation

template<class Derived, class Base>
struct cpphots::interfaces::Clonable : public virtual Base

Class implementing the clonable interface.

Concrete classes should derive from this.

tparam Derived

concrete class

tparam Base

interface class

Public Functions

inline Base *clone() const override

Clone the object.

Returns

pointer to the new object