I have an attribute `sort_function' which is to be assigned a function taking
two arguments of pointers to GET_entry.
The function will be used in a call to sort from within a descendant of class
vector, as in:
std::sort (begin(), end(), sort_function);
I want a feature `set_sort_function' which takes the appropriate type argument
for assignment to `sort_function'.
Can't seem to get the syntax right. Any help would be appreciated.
bool (*sort_function)(GET_entry *, GET_entry *);
void set_sort_function (?? some-type-here ?? a_function) {
sort_function = a_function;
};
best regards,
Jimmy J. Johnson