diff options
Diffstat (limited to 'utility/sorting.hpp')
-rw-r--r-- | utility/sorting.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/utility/sorting.hpp b/utility/sorting.hpp new file mode 100644 index 0000000..0cb0eaf --- /dev/null +++ b/utility/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 |