MCPcopy Create free account
hub / github.com/boostorg/hana / operator==

Method operator==

test/issues/github_460.cpp:15–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 BOOST_HANA_DEFINE_STRUCT(SomeStruct, (int, x));
14
15 constexpr bool operator==(SomeStruct const& other) const {
16 return hana::equal(hana::members(*this), hana::members(other));
17 }
18
19 constexpr bool operator!=(SomeStruct const& other) const {
20 return hana::not_equal(hana::members(*this), hana::members(other));

Callers

nothing calls this directly

Calls 1

equalClass · 0.50

Tested by

no test coverage detected