#ifndef ENTT_COMMON_BASIC_TEST_ALLOCATOR_HPP #define ENTT_COMMON_BASIC_TEST_ALLOCATOR_HPP #include #include namespace test { template struct basic_test_allocator: std::allocator { // basic pocca/pocma/pocs allocator using base = std::allocator; using propagate_on_container_copy_assignment = std::true_type; using propagate_on_container_swap = Pocs; using std::allocator::allocator; basic_test_allocator &operator=(const basic_test_allocator &other) { // necessary to avoid call suppression base::operator=(other); return *this; } bool operator==(const basic_test_allocator &other) { return (this == &other); } }; } // namespace test #endif