Disallow copy but not move in derived types. This is essentially boost::noncopyable (the implementation is almost identical), except: 1) It doesn't delete move constructor and move assignment. 2) It has public methods, enabling aggregate initialization.
Declared in <folly/Utility.h>
struct MoveOnly;
| Name | Description |
|---|---|
MoveOnly [constructor] | Constructors |
~MoveOnly [destructor] | Destroys the base. |
operator= | Assignment operators |
| Name | Description |
|---|---|
GenericLockedPtr | A RAII wrapper around a pointer to the underlying object together with a lock on the underlying mutex. |