proxygen
folly::f14::MoveOnlyTestInt Struct Reference

#include <F14TestUtil.h>

Public Member Functions

 MoveOnlyTestInt () noexcept
 
 MoveOnlyTestInt (int x0)
 
 MoveOnlyTestInt (MoveOnlyTestInt &&rhs) noexcept
 
 MoveOnlyTestInt (MoveOnlyTestInt const &)=delete
 
MoveOnlyTestIntoperator= (MoveOnlyTestInt &&rhs) noexcept
 
MoveOnlyTestIntoperator= (MoveOnlyTestInt const &)=delete
 
 ~MoveOnlyTestInt ()
 
bool operator== (MoveOnlyTestInt const &rhs) const
 
bool operator!= (MoveOnlyTestInt const &rhs) const
 

Public Attributes

int x
 
bool destroyed {false}
 

Detailed Description

Definition at line 94 of file F14TestUtil.h.

Constructor & Destructor Documentation

folly::f14::MoveOnlyTestInt::MoveOnlyTestInt ( )
inlinenoexcept

Definition at line 98 of file F14TestUtil.h.

folly::f14::MoveOnlyTestInt::MoveOnlyTestInt ( int  x0)
inline

Definition at line 99 of file F14TestUtil.h.

99 : x(x0) {}
folly::f14::MoveOnlyTestInt::MoveOnlyTestInt ( MoveOnlyTestInt &&  rhs)
inlinenoexcept

Definition at line 100 of file F14TestUtil.h.

100 : x(rhs.x) {}
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
folly::f14::MoveOnlyTestInt::MoveOnlyTestInt ( MoveOnlyTestInt const &  )
delete
folly::f14::MoveOnlyTestInt::~MoveOnlyTestInt ( )
inline

Definition at line 109 of file F14TestUtil.h.

109  {
110  destroyed = true;
111  }

Member Function Documentation

bool folly::f14::MoveOnlyTestInt::operator!= ( MoveOnlyTestInt const &  rhs) const
inline

Definition at line 116 of file F14TestUtil.h.

References folly::detail::rhs.

116  {
117  return !(*this == rhs);
118  }
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
MoveOnlyTestInt& folly::f14::MoveOnlyTestInt::operator= ( MoveOnlyTestInt &&  rhs)
inlinenoexcept

Definition at line 102 of file F14TestUtil.h.

References folly::detail::rhs.

102  {
103  x = rhs.x;
104  destroyed = rhs.destroyed;
105  return *this;
106  }
Definition: InvokeTest.cpp:58
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
MoveOnlyTestInt& folly::f14::MoveOnlyTestInt::operator= ( MoveOnlyTestInt const &  )
delete
bool folly::f14::MoveOnlyTestInt::operator== ( MoveOnlyTestInt const &  rhs) const
inline

Definition at line 113 of file F14TestUtil.h.

References destroyed, and x.

113  {
114  return x == rhs.x && destroyed == rhs.destroyed;
115  }
Definition: InvokeTest.cpp:58
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649

Member Data Documentation

bool folly::f14::MoveOnlyTestInt::destroyed {false}

Definition at line 96 of file F14TestUtil.h.

Referenced by operator==().

int folly::f14::MoveOnlyTestInt::x

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