SVN / public / code / vorlesung-09 / InliningDemoFunctions.h

Revision 8201
Date
Committerhb1003
Download
1
2
3
4
5
6
7
8
9
bool compareInlinable(int x, int y) { return x > y; }
bool compareNotInlinable(int x, int y);

// Class with a method for comparing two integers.
class Compare {
public:
  bool operator()(int x, int y) { return x > y; }
  // public: bool compare(int x, int y) { return x > y; }
};