proxygen
folly::moveonly_::MoveOnly Class Reference

#include <Utility.h>

Protected Member Functions

constexpr MoveOnly ()=default
 
 ~MoveOnly ()=default
 
 MoveOnly (MoveOnly &&)=default
 
MoveOnlyoperator= (MoveOnly &&)=default
 
 MoveOnly (const MoveOnly &)=delete
 
MoveOnlyoperator= (const MoveOnly &)=delete
 

Detailed Description

Disallow copy but not move in derived types. This is essentially boost::noncopyable (the implementation is almost identical) but it doesn't delete move constructor and move assignment.

Definition at line 373 of file Utility.h.

Constructor & Destructor Documentation

constexpr folly::moveonly_::MoveOnly::MoveOnly ( )
protecteddefault
folly::moveonly_::MoveOnly::~MoveOnly ( )
protecteddefault
folly::moveonly_::MoveOnly::MoveOnly ( MoveOnly &&  )
protecteddefault
folly::moveonly_::MoveOnly::MoveOnly ( const MoveOnly )
protecteddelete

Member Function Documentation

MoveOnly& folly::moveonly_::MoveOnly::operator= ( MoveOnly &&  )
protecteddefault
MoveOnly& folly::moveonly_::MoveOnly::operator= ( const MoveOnly )
protecteddelete

The documentation for this class was generated from the following file: