MCPcopy Create free account
hub / github.com/apache/mesos / OnlyMoveable

Class OnlyMoveable

3rdparty/stout/tests/lambda_tests.cpp:24–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include <stout/numify.hpp>
23
24struct OnlyMoveable
25{
26 OnlyMoveable() : i(-1) {}
27 OnlyMoveable(int i) : i(i) {}
28
29 OnlyMoveable(OnlyMoveable&& that)
30 {
31 *this = std::move(that);
32 }
33
34 OnlyMoveable(const OnlyMoveable&) = delete;
35
36 OnlyMoveable& operator=(OnlyMoveable&& that)
37 {
38 i = that.i;
39 j = that.j;
40 that.valid = false;
41 return *this;
42 }
43
44 OnlyMoveable& operator=(const OnlyMoveable&) = delete;
45
46 int i;
47 int j = 0;
48 bool valid = true;
49};
50
51
52std::vector<std::string> function()

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68