[kutil] Add sorted insert to kutil::vector

Added a sorted insert to vector, as well as cleaning up and extending
the removal functions.
This commit is contained in:
2020-09-07 16:59:21 -07:00
parent 8490472581
commit 71cd7af17b
5 changed files with 102 additions and 15 deletions

View File

@@ -0,0 +1,13 @@
#pragma once
struct unsortableT {
int value;
};
struct sortableT {
int value;
int compare(const sortableT *other) const {
return value - other->value;
}
};