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

Function operator<

Examples/NoModules/Chapter 13/Ex13_02/Box.h:38–41  ·  view source on GitHub ↗

Function comparing a constant with volume of a Box object

Source from the content-addressed store, hash-verified

36
37// Function comparing a constant with volume of a Box object
38inline bool operator<(double value, const Box& aBox)
39{
40 return value < aBox.volume();
41}
42
43#endif

Callers

nothing calls this directly

Calls 1

volumeMethod · 0.45

Tested by

no test coverage detected