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_08/Box.cpp:29–32 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
27
}
28
29
std::partial_ordering Box::operator<=>(const Box& aBox) const
30
{
31
return volume() <=> aBox.volume();
32
}
33
34
std::partial_ordering Box::operator<=>(double value) const
35
{
Callers
nothing calls this directly
Calls
1
volume
Method · 0.45
Tested by
no test coverage detected