MCPcopy Create free account
hub / github.com/boost-ext/ut / foo

Class foo

example/terse.cpp:12–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10constexpr auto sum = [](auto... args) { return (0 + ... + args); };
11
12struct foo {
13 int a{};
14 bool b{};
15
16 constexpr auto operator==(const foo& other) const {
17 return a == other.a and b == other.b;
18 }
19
20 constexpr auto operator!=(const foo& other) const {
21 return not(*this == other);
22 }
23
24 friend auto& operator<<(std::ostream& os, const foo& f) {
25 return (os << "foo{" << f.a << ',' << f.b << '}');
26 }
27};
28
29int main() {
30 using boost::ut::operator""_test;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected