MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / operator++

Method operator++

tests/ClassTest.cpp:41–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 }
40
41 Test operator++(int)
42 {
43 Test tmp(*this); // copy
44 operator++(); // pre-increment
45 return tmp; // return old value
46 }
47
48 Test& operator+=(const Test& rhs) // compound assignment (does not need to be a member,
49 { // but often is, to modify the private members)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected