mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-14 07:23:26 +00:00
added nodiscard + static
This commit is contained in:
@@ -191,7 +191,8 @@ namespace omath::collision
|
|||||||
};
|
};
|
||||||
struct HeapCmp final
|
struct HeapCmp final
|
||||||
{
|
{
|
||||||
bool operator()(const HeapItem& lhs, const HeapItem& rhs) const noexcept
|
[[nodiscard]]
|
||||||
|
static bool operator()(const HeapItem& lhs, const HeapItem& rhs) const noexcept
|
||||||
{
|
{
|
||||||
return lhs.d > rhs.d; // min-heap by distance
|
return lhs.d > rhs.d; // min-heap by distance
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user