proxygen
folly::MoveTester Class Reference

Public Member Functions

 MoveTester (const char *s)
 
 MoveTester (const MoveTester &)=default
 
 MoveTester (MoveTester &&other) noexcept
 
MoveTesteroperator= (const MoveTester &)=default
 
MoveTesteroperator= (MoveTester &&other) noexcept
 

Private Attributes

std::string s_
 

Friends

bool operator== (const MoveTester &o1, const MoveTester &o2)
 

Detailed Description

Definition at line 133 of file ExpectedTest.cpp.

Constructor & Destructor Documentation

folly::MoveTester::MoveTester ( const char *  s)
inline

Definition at line 135 of file ExpectedTest.cpp.

135 : s_(s) {}
static set< string > s
folly::MoveTester::MoveTester ( const MoveTester )
default
folly::MoveTester::MoveTester ( MoveTester &&  other)
inlinenoexcept

Definition at line 137 of file ExpectedTest.cpp.

References folly::gen::move, and s_.

137  {
138  s_ = std::move(other.s_);
139  other.s_ = "";
140  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Function Documentation

MoveTester& folly::MoveTester::operator= ( const MoveTester )
default
MoveTester& folly::MoveTester::operator= ( MoveTester &&  other)
inlinenoexcept

Definition at line 142 of file ExpectedTest.cpp.

References folly::gen::move, folly::operator==(), and s_.

142  {
143  s_ = std::move(other.s_);
144  other.s_ = "";
145  return *this;
146  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Friends And Related Function Documentation

bool operator== ( const MoveTester o1,
const MoveTester o2 
)
friend

Definition at line 153 of file ExpectedTest.cpp.

153  {
154  return o1.s_ == o2.s_;
155 }

Member Data Documentation

std::string folly::MoveTester::s_
private

Definition at line 150 of file ExpectedTest.cpp.

Referenced by folly::operator==().


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