folly::MoveOnly

Base that disallows copy but allows move in derived types.

Synopsis

Declared in <folly/Utility.h>

using moveonly_::MoveOnly;

Introduced Symbols

NameDescription
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.