forked from boostorg/container
Add improved range insertion to flat associative containers and improve merge operation for vector.
This commit is contained in:
1 parent
3c6f4ea2ed
commit
6ce2b2d0f8
8 files changed
+309
-274
No files matched your search
+9
-9
@@ -388,12 +388,12 @@ int set_test ()
|
||||
|
||||
boostset.insert(boost::make_move_iterator(&aux_vect[0]), boost::make_move_iterator(&aux_vect[0] + 50));
|
||||
stdset.insert(&aux_vect2[0], &aux_vect2[0] + 50);
|
||||
boostmultiset.insert(boost::make_move_iterator(&aux_vect3[0]), boost::make_move_iterator(aux_vect3 + 50));
|
||||
stdmultiset.insert(&aux_vect2[0], &aux_vect2[0] + 50);
|
||||
if(!CheckEqualContainers(boostset, stdset)){
|
||||
std::cout << "Error in boostset.insert(boost::make_move_iterator(&aux_vect[0])..." << std::endl;
|
||||
std::cout << "Error in boostset.insert(boost::make_move_iterator(&aux_vect3[0])..." << std::endl;
|
||||
return 1;
|
||||
}
|
||||
boostmultiset.insert(boost::make_move_iterator(&aux_vect3[0]), boost::make_move_iterator(aux_vect3 + 50));
|
||||
stdmultiset.insert(&aux_vect2[0], &aux_vect2[0] + 50);
|
||||
if(!CheckEqualContainers(boostmultiset, stdmultiset)){
|
||||
std::cout << "Error in boostmultiset.insert(boost::make_move_iterator(&aux_vect3[0]), ..." << std::endl;
|
||||
return 1;
|
||||
@@ -447,14 +447,14 @@ int set_test ()
|
||||
boostset.insert(boost::make_move_iterator(&aux_vect3[0]), boost::make_move_iterator(&aux_vect3[0] + 50));
|
||||
stdset.insert(&aux_vect2[0], &aux_vect2[0] + 50);
|
||||
stdset.insert(&aux_vect2[0], &aux_vect2[0] + 50);
|
||||
boostmultiset.insert(boost::make_move_iterator(&aux_vect4[0]), boost::make_move_iterator(&aux_vect4[0] + 50));
|
||||
boostmultiset.insert(boost::make_move_iterator(&aux_vect5[0]), boost::make_move_iterator(&aux_vect5[0] + 50));
|
||||
stdmultiset.insert(&aux_vect2[0], &aux_vect2[0] + 50);
|
||||
stdmultiset.insert(&aux_vect2[0], &aux_vect2[0] + 50);
|
||||
if(!CheckEqualContainers(boostset, stdset)){
|
||||
std::cout << "Error in boostset.insert(boost::make_move_iterator(&aux_vect3[0])..." << std::endl;
|
||||
return 1;
|
||||
}
|
||||
boostmultiset.insert(boost::make_move_iterator(&aux_vect4[0]), boost::make_move_iterator(&aux_vect4[0] + 50));
|
||||
boostmultiset.insert(boost::make_move_iterator(&aux_vect5[0]), boost::make_move_iterator(&aux_vect5[0] + 50));
|
||||
stdmultiset.insert(&aux_vect2[0], &aux_vect2[0] + 50);
|
||||
stdmultiset.insert(&aux_vect2[0], &aux_vect2[0] + 50);
|
||||
if(!CheckEqualContainers(boostmultiset, stdmultiset)){
|
||||
std::cout << "Error in boostmultiset.insert(boost::make_move_iterator(&aux_vect5[0])..." << std::endl;
|
||||
return 1;
|
||||
@@ -462,12 +462,12 @@ int set_test ()
|
||||
|
||||
boostset.erase(*boostset.begin());
|
||||
stdset.erase(*stdset.begin());
|
||||
boostmultiset.erase(*boostmultiset.begin());
|
||||
stdmultiset.erase(*stdmultiset.begin());
|
||||
if(!CheckEqualContainers(boostset, stdset)){
|
||||
std::cout << "Error in boostset.erase(*boostset.begin())" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
boostmultiset.erase(*boostmultiset.begin());
|
||||
stdmultiset.erase(*stdmultiset.begin());
|
||||
if(!CheckEqualContainers(boostmultiset, stdmultiset)){
|
||||
std::cout << "Error in boostmultiset.erase(*boostmultiset.begin())" << std::endl;
|
||||
return 1;
|
||||
|
||||
Reference in new issue
Block a user