| 560 | // Size and clear for map containers |
| 561 | template<typename Map> |
| 562 | void test_map_size_clear() { |
| 563 | Map m; |
| 564 | FL_CHECK(m.empty()); |
| 565 | FL_CHECK(m.size() == 0); |
| 566 | |
| 567 | m.insert(fl::make_pair(1, 100)); |
| 568 | m.insert(fl::make_pair(2, 200)); |
| 569 | FL_CHECK(!m.empty()); |
| 570 | FL_CHECK(m.size() == 2); |
| 571 | |
| 572 | m.clear(); |
| 573 | FL_CHECK(m.empty()); |
| 574 | FL_CHECK(m.size() == 0); |
| 575 | } |
| 576 | |
| 577 | // Count method for map containers |
| 578 | template<typename Map> |