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

Method operator<=>

Examples/NoModules/Chapter 13/Ex13_05/Box.cpp:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19std::partial_ordering Box::operator<=>(const Box& aBox) const
20{
21 return volume() <=> aBox.volume();
22}
23
24std::partial_ordering Box::operator<=>(double value) const
25{

Callers

nothing calls this directly

Calls 1

volumeMethod · 0.45

Tested by

no test coverage detected