mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-29 19:07:15 +02:00
Add node-based foa containers to erase_if tests
This commit is contained in:
@ -2035,7 +2035,7 @@ private:
|
||||
{
|
||||
std::size_t s=size();
|
||||
for_all_elements([&,this](group_type* pg,unsigned int n,element_type* p){
|
||||
if(pr(*p)) erase(iterator{pg,n,p});
|
||||
if(pr(type_policy::value_from(*p))) erase(iterator{pg,n,p});
|
||||
});
|
||||
return std::size_t(s-size());
|
||||
}
|
||||
|
@ -110,6 +110,8 @@ UNORDERED_AUTO_TEST (unordered_erase_if) {
|
||||
#ifdef BOOST_UNORDERED_FOA_TESTS
|
||||
test_map_erase_if<boost::unordered_flat_map<std::string, int> >();
|
||||
test_set_erase_if<boost::unordered_flat_set<int> >();
|
||||
test_map_erase_if<boost::unordered_node_map<std::string, int> >();
|
||||
test_set_erase_if<boost::unordered_node_set<int> >();
|
||||
#else
|
||||
test_map_erase_if<boost::unordered_map<std::string, int> >();
|
||||
test_map_erase_if<boost::unordered_multimap<std::string, int> >();
|
||||
|
Reference in New Issue
Block a user