#include <memutils.hpp>
Unique pointer with polymorphic deep copy semantics.
It is copy constructible and copy assignable. Copy construction creates a new pointer, containing a clone of the object, the original pointer pointed to.
T | Value type. Must be polymorphically cloneable, i.e. have a virtual clone method as example below. |
Usage example:
Definition at line 22 of file DomainShape_fwd.hpp.
Public Member Functions | |
deep_copy_unique_ptr (const T &v) | |
Construct by polymorphically cloning a given value. More... | |
deep_copy_unique_ptr (const deep_copy_unique_ptr &o) | |
Copy by cloning the value of o . More... | |
deep_copy_unique_ptr (deep_copy_unique_ptr &&o) noexcept | |
Move construct as unique_ptr . More... | |
deep_copy_unique_ptr & | operator= (const T &v) |
Copy assign by cloning a given value. More... | |
deep_copy_unique_ptr & | operator= (const deep_copy_unique_ptr &o) |
Copy assign by cloning the value of o . More... | |
deep_copy_unique_ptr & | operator= (deep_copy_unique_ptr &&o) noexcept |
Move assign as unique_ptr More... | |
|
inlineexplicit |
Construct by polymorphically cloning a given value.
Definition at line 37 of file memutils.hpp.
|
inline |
Copy by cloning the value of o
.
Definition at line 41 of file memutils.hpp.
|
inlinenoexcept |
Move construct as unique_ptr
.
Definition at line 47 of file memutils.hpp.
|
inline |
Copy assign by cloning the value of o
.
Definition at line 57 of file memutils.hpp.
|
inline |
Copy assign by cloning a given value.
Definition at line 51 of file memutils.hpp.
|
inlinenoexcept |
Move assign as unique_ptr
Definition at line 63 of file memutils.hpp.