add operators interface

This commit is contained in:
2019-05-04 12:59:35 +07:00
parent d95c6f9b05
commit 4e6c24a126
4 changed files with 94 additions and 15 deletions

View File

@@ -149,4 +149,15 @@ TEST_CASE("flat_set") {
my_as_const(s0).key_comp();
my_as_const(s0).value_comp();
}
SECTION("operators") {
using set_t = flat_set<int>;
set_t s0;
set_t s1;
REQUIRE(s0 == s1);
REQUIRE_FALSE(s0 != s1);
REQUIRE_FALSE(s0 < s1);
REQUIRE_FALSE(s0 > s1);
REQUIRE(s0 <= s1);
REQUIRE(s0 >= s1);
}
}