1 2 3 4 5 6 7 8 9
#pragma once template<typename T> struct PtrSorter { bool operator()(const T & a, const T & b) const { return *a < *b; } };