mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
flat_map: add value_comp()
This commit is contained in:
committed by
Matthew Barr
parent
e37fdb240a
commit
f520599ab7
@@ -211,6 +211,7 @@ TEST(flat_map, custom_compare) {
|
||||
ASSERT_EQ(10, f.rbegin()->second);
|
||||
|
||||
ASSERT_TRUE(flat_map_is_sorted(f));
|
||||
ASSERT_TRUE(std::is_sorted(f.begin(), f.end(), f.value_comp()));
|
||||
ASSERT_TRUE(flat_map_is_sorted_cmp(f, std::greater<u32>()));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user