memgraph/storage/indexes/sort_order.hpp
2016-01-02 12:20:51 +01:00

20 lines
300 B
C++

#pragma once
template <class T>
class Ascending
{
constexpr bool operator()(const T& lhs, const T& rhs) const
{
return lhs < rhs;
}
};
template <class T>
class Descending
{
constexpr bool operator()(const T& lhs, const T& rhs) const
{
return lhs > rhs;
}
};