Visual Computing Library
|
Concept that is evaluated true if T is a cloneable object. More...
#include <vclib/concepts/polymorphism.h>
Concept that is evaluated true if T is a cloneable object.
A cloneable object is an object that can be cloned by calling the method clone()
, which returns a shared pointer to the cloned object.
Cloneable objects are useful when polymorphism is needed, and the object needs to be copied without knowing the exact type of the object:
T | The type to be checked if it is cloneable. |