blob: 6c404964c1e4201d43da312d33dac3f4b5861713 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <algorithm>
class Ordering {
public:
bool operator()(int a, int b) {
return a < b;
}
};
void SortAscending(int array[], int size) {
std::sort(array, array + size, Ordering());
}
extern "C" int OverriddenCFunction(int i) __attribute__ ((weak));
extern "C" int OverriddenCFunction(int i) {
return i;
}
|