BucketList: Generify Append() and Erase()

BucketList allows choosing an arbitrary type, but the interface was
assuming uint32_t was only desirable
This commit is contained in:
lioncash committed 2021-11-24 17:01:52 -05:00
1 parent db6cbbe7d4
commit 52ed4a97cf
1 file changed
+2 -2
+2 -2
View File
@@ -75,7 +75,7 @@ namespace FEXCore {
return false;
}
void Append(uint32_t Val) {
void Append(T Val) {
auto that = this;
while (that->Next) {
@@ -96,7 +96,7 @@ namespace FEXCore {
that->Next = std::make_unique<BucketList<Size, T>>();
}
}
void Erase(uint32_t Val) {
void Erase(T Val) {
size_t i = 0;
auto that = this;
auto foundThat = this;