mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 14:04:26 +02:00
Added equal_range and range insertion test prototypes.
[SVN r77908]
This commit is contained in:
@@ -387,10 +387,17 @@ int map_test ()
|
||||
return 1;
|
||||
if(!CheckEqualPairContainers(boostmultimap, stdmultimap))
|
||||
return 1;
|
||||
{
|
||||
IntType i1(i);
|
||||
IntType i2(i);
|
||||
new(&intpair)IntPairType(boost::move(i1), boost::move(i2));
|
||||
{ //Check equal_range
|
||||
std::pair<typename MyBoostMultiMap::iterator, typename MyBoostMultiMap::iterator> bret =
|
||||
boostmultimap->equal_range(boostmultimap->begin()->first);
|
||||
|
||||
std::pair<typename MyStdMultiMap::iterator, typename MyStdMultiMap::iterator> sret =
|
||||
stdmultimap->equal_range(stdmultimap->begin()->first);
|
||||
|
||||
if( std::distance(bret.first, bret.second) !=
|
||||
std::distance(sret.first, sret.second) ){
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
{
|
||||
IntType i1(i);
|
||||
|
@@ -94,7 +94,7 @@ enum Test
|
||||
};
|
||||
|
||||
int main()
|
||||
{/*
|
||||
{
|
||||
{
|
||||
const std::size_t positions_length = 10;
|
||||
std::size_t positions[positions_length];
|
||||
@@ -114,7 +114,7 @@ int main()
|
||||
for(std::size_t i = 0, max = vector_int.size(); i != max; ++i){
|
||||
std::cout << vector_int[i] << std::endl;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
recursive_vector_test();
|
||||
{
|
||||
//Now test move semantics
|
||||
|
Reference in New Issue
Block a user