15 lines
302 B
C++
15 lines
302 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <type_traits>
|
||
|
|
|
||
|
|
namespace Bloom {
|
||
|
|
template<typename Type>
|
||
|
|
requires std::is_pointer<Type>::value
|
||
|
|
struct DereferenceLessComparator
|
||
|
|
{
|
||
|
|
constexpr bool operator () (const Type& lhs, const Type& rhs) const {
|
||
|
|
return *lhs < *rhs;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|