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

Function operator+

Examples/NoModules/Chapter 13/Ex13_07/Integer.h:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12};
13
14inline Integer operator+(const Integer& one, const Integer& other)
15{
16 return one.getValue() + other.getValue();
17}
18inline Integer operator-(const Integer& one, const Integer& other)
19{
20 return one.getValue() - other.getValue();

Callers

nothing calls this directly

Calls 1

getValueMethod · 0.45

Tested by

no test coverage detected