#include <set>
#include <cstdio>

using namespace std;

bool f( int i, int j ) { return i > j; };

int main() {
  set <int, __typeof(f)*> s(&f);
  //set <int, decltype(f)*> s(&f);
  //set <int, bool(*)(int,int)> s(&f);

  for (int i = 1; i <= 10; i++)
    s.insert(i);
  for (auto it : s)
    printf("%d ", it);
  return 0;
}