List Data Structure

This commit is contained in:
2025-07-23 13:26:50 -04:00
parent f9de242b87
commit 7ea2710ee0
8 changed files with 267 additions and 33 deletions

View File

@@ -152,7 +152,7 @@ public:
if (_equal(*_alloc[i].value, val)) { // Check to see if this element is already inserted
return;
}
if (psl >= _alloc[i].psl) { // When psl is higher, swap
if (psl > _alloc[i].psl) { // When psl is higher, swap
fennec::swap(*_alloc[i].value, value);
fennec::swap(_alloc[i].psl, psl);
}