Tatooine
clonable.h
Go to the documentation of this file.
1#ifndef TATOOINE_CLONABLE_H
2#define TATOOINE_CLONABLE_H
3
4//==============================================================================
5namespace tatooine {
6//==============================================================================
7template <typename Base>
8struct clonable {
9 using base_t = Base;
10 using cloned_ptr_t = std::unique_ptr<base_t>;
11 virtual cloned_ptr_t clone() const = 0;
12};
13//==============================================================================
14} // namespace tatooine
15//==============================================================================
16#endif
Definition: algorithm.h:6
Definition: clonable.h:8
std::unique_ptr< base_t > cloned_ptr_t
Definition: clonable.h:10
virtual cloned_ptr_t clone() const =0
Base base_t
Definition: clonable.h:9