mirror of
https://github.com/BlackMATov/flat.hpp.git
synced 2025-12-16 14:09:01 +07:00
add capacity interface
This commit is contained in:
@@ -87,6 +87,13 @@ TEST_CASE("flat_set") {
|
||||
auto s3 = set_t({0,1,2}, std::less<int>(), alloc_t());
|
||||
}
|
||||
}
|
||||
SECTION("capacity") {
|
||||
using set_t = flat_set<int>;
|
||||
set_t s0;
|
||||
s0.empty();
|
||||
s0.size();
|
||||
s0.max_size();
|
||||
}
|
||||
SECTION("inserts") {
|
||||
struct obj_t {
|
||||
obj_t(int i) : i(i) {}
|
||||
|
||||
Reference in New Issue
Block a user