hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
cloneable.hpp File Reference
#include <memory>
Include dependency graph for cloneable.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Cloneable< T >
 
class  Cloneable< T >
 

Functions

template<typename T >
std::unique_ptr< T > clone (const T &object)
 
template<typename T >
auto clone (T *object)
 

Function Documentation

template<typename T >
std::unique_ptr<T> clone ( const T &  object)

Function to clone from Cloneable.

Template Parameters
T- derived from Cloneable
Parameters
object- object to clone
Returns
clone of object

Here is the caller graph for this function:

template<typename T >
auto clone ( T *  object)

Helper function to copy from pointer to Cloneable.

Template Parameters
T- derived from Cloneable
Parameters
object- object to clone
Returns
clone of object

Here is the call graph for this function: