KaMPIng 0.1.1
Flexible and (near) zero-overhead C++ bindings for MPI
|
Class optionally containing a copy constructor while supporting move assignment/construction. More...
#include <data_buffer.hpp>
Protected Member Functions | |
CopyMoveEnabler (CopyMoveEnabler const &)=delete | |
Copy constructor is deleted as buffers should only be moved. | |
CopyMoveEnabler & | operator= (CopyMoveEnabler const &)=delete |
Copy assignment operator is deleted as buffers should only be moved. | |
CopyMoveEnabler (CopyMoveEnabler &&)=default | |
Move constructor. | |
CopyMoveEnabler & | operator= (CopyMoveEnabler &&)=default |
Move assignment operator. | |
Class optionally containing a copy constructor while supporting move assignment/construction.
enable_copy_constructor | Indicates whether the copy constructor should be enabled. You can inherit from this class privately. While constructors are never inherited, the derived class still has no copy constructor (if not especially enabled), because it can not be default constructed, due to the missing implementation in the base class. Because we provide a (default) implementation for the move constructor (assignment) in the base class, the derived class can construct default implementations. |