folly::moveonly_::MoveOnly

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

NameDescription
MoveOnly [constructor]Constructors
~MoveOnly [destructor]Destroys the base.
operator= Assignment operators

Derived Classes

NameDescription
GenericLockedPtr A RAII wrapper around a pointer to the underlying object together with a lock on the underlying mutex.