diff options
Diffstat (limited to 'lib/sorting.hpp')
-rw-r--r-- | lib/sorting.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/sorting.hpp b/lib/sorting.hpp new file mode 100644 index 0000000..0cb0eaf --- /dev/null +++ b/lib/sorting.hpp @@ -0,0 +1,12 @@ +#ifndef SORTING_H +#define SORTING_H + +template<typename T> struct PtrSorter { + bool + operator()(const T & a, const T & b) const + { + return *a < *b; + } +}; + +#endif |