MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / operator<=>

Method operator<=>

Exercises/Modules/Chapter 13/Soln13_08/Box.cpp:30–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30std::partial_ordering Box::operator<=>(const Box& aBox) const
31{
32 return volume() <=> aBox.volume();
33}
34
35std::partial_ordering Box::operator<=>(double value) const
36{

Callers

nothing calls this directly

Calls 1

volumeMethod · 0.45

Tested by

no test coverage detected