An empty class that can't be copied (moving is allowed). More...
#include <UncopiableAndUnmovableClass.h>
Public Member Functions | |
UncopiableClass ()=default | |
Default constructor. More... | |
~UncopiableClass ()=default | |
Default destructor. More... | |
UncopiableClass (UncopiableClass const &)=delete | |
Deleted copy and move constructors and assignments. More... | |
UncopiableClass (UncopiableClass &&)=default | |
UncopiableClass & | operator= (UncopiableClass const &)=delete |
UncopiableClass & | operator= (UncopiableClass &&)=default |
An empty class that can't be copied (moving is allowed).
A class derived from this one can still be copied with an explicit effort. For example, to enable copy construction:
the default constructor of the base class can be called explicitly instead of the copy constructor. To provide an assignment operation,
Definition at line 72 of file UncopiableAndUnmovableClass.h.
|
default |
Default constructor.
|
delete |
Deleted copy and move constructors and assignments.
|
default |
|
default |
Default destructor.
|
delete |
|
default |