Replaced std::vector with std::set, for automatic sorting in ListScene widget.

And added `ListScene::removeListItem()` function
This commit is contained in:
Nav
2023-04-15 00:00:06 +01:00
parent c5545df40a
commit 3feb60cc5c
7 changed files with 30 additions and 23 deletions

View File

@@ -0,0 +1,14 @@
#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;
}
};
}