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

Method operator<=>

06.13-bcd1/main.cpp:16–16  ·  view source on GitHub ↗

#A Provide at least equality comparison

Source from the content-addressed store, hash-verified

14
15 // #A Provide at least equality comparison
16 auto operator<=>(const BCD&) const = default;
17
18private:
19 int mSignificance; // #B The additional member just works

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected