#pragma once template struct PtrSorter { bool operator()(const T & a, const T & b) const { return *a < *b; } };