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