| 1617 | |
| 1618 | template <typename Factory> |
| 1619 | void test_pmr_remove_one() { |
| 1620 | tracking_memory_resource mr; |
| 1621 | typename Factory::container_type c = Factory::create(mr); |
| 1622 | for (int i = 0; i < kPmrInsertCount; ++i) { |
| 1623 | Factory::insert(c, i); |
| 1624 | } |
| 1625 | FL_CHECK(c.size() == static_cast<fl::size>(kPmrInsertCount)); |
| 1626 | Factory::remove_one(c); |
| 1627 | FL_CHECK(c.size() == static_cast<fl::size>(kPmrInsertCount - 1)); |
| 1628 | } |
| 1629 | |
| 1630 | template <typename Factory> |
| 1631 | void test_pmr_destructor_deallocates() { |