2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-03 13:26:03 +00:00

Allow using custom comparators in flat_[map|set].

This commit is contained in:
John Preston
2017-10-05 16:35:31 +01:00
parent ecbc0ae57e
commit fdd89d65ca
3 changed files with 258 additions and 127 deletions

View File

@@ -29,6 +29,8 @@ TEST_CASE("flat_sets should keep items sorted", "[flat_set]") {
v.insert(4);
v.insert(2);
REQUIRE(v.contains(4));
auto checkSorted = [&] {
auto prev = v.begin();
REQUIRE(prev != v.end());