| 817 | |
| 818 | template<typename Container> |
| 819 | void test_sequential_insert_erase() { |
| 820 | Container c; |
| 821 | c.push_back(10); |
| 822 | c.push_back(30); |
| 823 | |
| 824 | FL_CHECK(c.size() == 2); |
| 825 | FL_CHECK(c.front() == 10); |
| 826 | FL_CHECK(c.back() == 30); |
| 827 | |
| 828 | // Test insert (if supported) |
| 829 | auto it = c.begin(); |
| 830 | ++it; |
| 831 | c.insert(it, 20); |
| 832 | FL_CHECK(c.size() == 3); |
| 833 | |
| 834 | // Test erase (if supported) |
| 835 | it = c.begin(); |
| 836 | ++it; |
| 837 | c.erase(it); |
| 838 | FL_CHECK(c.size() == 2); |
| 839 | } |
| 840 | |
| 841 | // ============================================================================ |
| 842 | // Capacity Management Contract Test Functions |