MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / operator==

Method operator==

06.12-bcd0/main.cpp:17–20  ·  view source on GitHub ↗

#B Provide at least equality comparison

Source from the content-addressed store, hash-verified

15
16 // #B Provide at least equality comparison
17 bool operator==(const BCD& rhs) const
18 {
19 return rhs.mValue == mValue;
20 }
21
22 bool operator!=(const BCD& rhs) const
23 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected