summaryrefslogtreecommitdiff
path: root/lib/sorting.hpp
blob: 6b9be6a65020e3c02a1f7ce9abdd793133441de3 (plain)
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;
	}
};