Value_Ptrtraits template structure. More...
List of all members.
Static Public Member Functions
|T *||clone (T const *p)|
|Copy the given object. |
Value_Ptrtraits template structure.
Value_Ptr template class delegates some operations to this template traits structure.
Specialize this trait template if cloning through copy construction is not sufficient. For example, to avoid slicing when copying an object through a base class pointer, one can implement a virtual "clone" method that can be used to polymorphically invoke the appropriate cloning operation(s). That virtual method would then be invoked by the
Copy the given object.