Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ operator<=>
Method
operator<=>
Exercises/NoModules/Chapter 13/Soln13_03/Box.cpp:62–65 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
60
}
61
62
std::partial_ordering Box::operator<=>(const Box& aBox) const
63
{
64
return volume() <=> aBox.volume();
65
}
66
67
std::partial_ordering Box::operator<=>(double value) const
68
{
Callers
nothing calls this directly
Calls
1
volume
Method · 0.45
Tested by
no test coverage detected