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

Method operator++

tests/ClassOperatorHandler2Test.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23 operator const int() const { return mX; }
24 Foo operator++(int)
25 {
26 Foo old(*this);
27 printf(" ======\n");
28 ++mX;
29 printf(" ++++++\n");
30 return old;
31 }
32 Foo& operator++()
33 {
34 ++mX;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected