Replaced std::vector with std::set, for automatic sorting in ListScene widget.
And added `ListScene::removeListItem()` function
This commit is contained in:
14
src/Helpers/DereferenceLessComparator.hpp
Normal file
14
src/Helpers/DereferenceLessComparator.hpp
Normal 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;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user