| 1604 | |
| 1605 | template <typename Factory> |
| 1606 | void test_pmr_clear_empties() { |
| 1607 | tracking_memory_resource mr; |
| 1608 | typename Factory::container_type c = Factory::create(mr); |
| 1609 | for (int i = 0; i < kPmrInsertCount; ++i) { |
| 1610 | Factory::insert(c, i); |
| 1611 | } |
| 1612 | FL_CHECK(mr.allocate_count > 0); |
| 1613 | c.clear(); |
| 1614 | FL_CHECK(c.size() == 0); |
| 1615 | FL_CHECK(c.empty()); |
| 1616 | } |
| 1617 | |
| 1618 | template <typename Factory> |
| 1619 | void test_pmr_remove_one() { |