|
QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
|
cloning proxy to an underlying object More...
#include <clone.hpp>
Inheritance diagram for Clone< T >:
Collaboration diagram for Clone< T >:Public Member Functions | |
| Clone ()=default | |
| Clone (std::unique_ptr< T > &&) | |
| Clone (const T &) | |
| Clone (const Clone< T > &) | |
| Clone (Clone< T > &&) noexcept | |
| Clone< T > & | operator= (const T &) |
| Clone< T > & | operator= (const Clone< T > &) |
| Clone< T > & | operator= (Clone< T > &&) noexcept |
| T & | operator* () const |
| T * | operator-> () const |
| bool | empty () const |
| void | swap (Clone< T > &t) noexcept |
| ~Clone ()=default | |
Private Attributes | |
| std::unique_ptr< T > | ptr_ |
Related Functions | |
(Note that these are not member functions.) | |
| template<class T > | |
| void | swap (Clone< T > &, Clone< T > &) noexcept |
cloning proxy to an underlying object
When copied, this class will make a clone of its underlying object, which must provide a clone() method returning a std::auto_ptr (or a std::unique_ptr, depending on your configuration) to a newly-allocated instance.
|
default |
|
default |