mirror of
https://github.com/boostorg/container.git
synced 2025-08-03 06:24: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;
|
return 1;
|
||||||
if(!CheckEqualPairContainers(boostmultimap, stdmultimap))
|
if(!CheckEqualPairContainers(boostmultimap, stdmultimap))
|
||||||
return 1;
|
return 1;
|
||||||
{
|
{ //Check equal_range
|
||||||
IntType i1(i);
|
std::pair<typename MyBoostMultiMap::iterator, typename MyBoostMultiMap::iterator> bret =
|
||||||
IntType i2(i);
|
boostmultimap->equal_range(boostmultimap->begin()->first);
|
||||||
new(&intpair)IntPairType(boost::move(i1), boost::move(i2));
|
|
||||||
|
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);
|
IntType i1(i);
|
||||||
|
@@ -94,7 +94,7 @@ enum Test
|
|||||||
};
|
};
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{/*
|
{
|
||||||
{
|
{
|
||||||
const std::size_t positions_length = 10;
|
const std::size_t positions_length = 10;
|
||||||
std::size_t positions[positions_length];
|
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){
|
for(std::size_t i = 0, max = vector_int.size(); i != max; ++i){
|
||||||
std::cout << vector_int[i] << std::endl;
|
std::cout << vector_int[i] << std::endl;
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
recursive_vector_test();
|
recursive_vector_test();
|
||||||
{
|
{
|
||||||
//Now test move semantics
|
//Now test move semantics
|
||||||
|
Reference in New Issue
Block a user