kblib 0.2.3
General utilities library for modern C++
|
Implements type erasure for copy construction. More...
#include <kblib/poly_obj.h>
Public Member Functions | |
default_copy () noexcept=default | |
Constructs an object which does nothing. More... | |
template<typename T > | |
default_copy (T *) noexcept | |
Constructs an object which can copy a T. More... | |
auto | copy (void *dest, const Obj *from) -> Obj * |
Copies an object of previously-established type. More... | |
Implements type erasure for copy construction.
Definition at line 257 of file poly_obj.h.
|
defaultnoexcept |
Constructs an object which does nothing.
|
inlineexplicitnoexcept |
Constructs an object which can copy a T.
Definition at line 271 of file poly_obj.h.
|
inline |
Copies an object of previously-established type.
Definition at line 275 of file poly_obj.h.