MCPcopy Create free account
hub / github.com/Tessil/ordered-map / copy_constructible_only_test

Class copy_constructible_only_test

tests/utils.h:99–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97};
98
99class copy_constructible_only_test {
100 public:
101 explicit copy_constructible_only_test(std::int64_t value) : m_value(value) {}
102
103 copy_constructible_only_test(const copy_constructible_only_test&) = default;
104 copy_constructible_only_test(copy_constructible_only_test&&) = delete;
105 copy_constructible_only_test& operator=(const copy_constructible_only_test&) =
106 delete;
107 copy_constructible_only_test& operator=(copy_constructible_only_test&&) =
108 delete;
109
110 friend std::ostream& operator<<(std::ostream& stream,
111 const copy_constructible_only_test& value) {
112 stream << value.m_value;
113 return stream;
114 }
115
116 friend bool operator==(const copy_constructible_only_test& lhs,
117 const copy_constructible_only_test& rhs) {
118 return lhs.m_value == rhs.m_value;
119 }
120
121 friend bool operator!=(const copy_constructible_only_test& lhs,
122 const copy_constructible_only_test& rhs) {
123 return !(lhs == rhs);
124 }
125
126 std::int64_t value() const { return m_value; }
127
128 private:
129 std::int64_t m_value;
130};
131
132namespace std {
133template <>

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68