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.
Synopsis
Declared in <folly/Utility.h>
struct MoveOnly;
Member Functions
Derived Classes
Name |
Description |
A RAII wrapper around a pointer to the underlying object together with a lock on the underlying mutex. |
Created with MrDocs