| 577 | // Count method for map containers |
| 578 | template<typename Map> |
| 579 | void test_map_count() { |
| 580 | Map m; |
| 581 | m.insert(fl::make_pair(1, 100)); |
| 582 | m.insert(fl::make_pair(2, 200)); |
| 583 | m.insert(fl::make_pair(3, 300)); |
| 584 | |
| 585 | // count returns 0 or 1 for unique keys in map |
| 586 | FL_CHECK(m.count(1) > 0); |
| 587 | FL_CHECK(m.count(2) > 0); |
| 588 | FL_CHECK(m.count(99) == 0); |
| 589 | } |
| 590 | |
| 591 | // Front and back element access for map containers |
| 592 | template<typename Map> |