Bromeon
thor::StaticCopy< T > Struct Template Reference

Ownership policy that performs a deep value copy. More...

List of all members.


Detailed Description

template<typename T>
struct thor::StaticCopy< T >

Ownership policy that performs a deep value copy.

If the pointee shall be copied every time the owning CopiedPtr is copied, you can use this template. Note that it can't handle polymorphic copies. If T* actually points to an other type than T, the object is sliced. For correct behavior with polymorphism, use either DynamicCopy or VirtualClone.


The documentation for this struct was generated from the following file: