Added equal_range and range insertion test prototypes.

[SVN r77908]
This commit is contained in:
Ion Gaztañaga committed 2012-04-11 06:24:09 +00:00
1 parent 199b9dca8c
commit ed523da2bc
2 files changed
+13 -6

No files matched your search

+11 -4
View File
@@ -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);