Lines Matching refs:range
44 pair<int*, int*> range = equal_range((int*)numbers, (int*)numbers + 10, 2); in equal_range0() local
45 CPPUNIT_ASSERT( (range.first - numbers) == 4 ); in equal_range0()
46 CPPUNIT_ASSERT( (range.second - numbers) == 8 ); in equal_range0()
56 pair<IntVec::iterator, IntVec::iterator> range = equal_range(v.begin(), v.end(), 2); in equal_range1() local
57 CPPUNIT_ASSERT( (range.first - v.begin()) == 6 ); in equal_range1()
58 CPPUNIT_ASSERT( (range.second - v.begin()) == 9 ); in equal_range1()
59 for (; range.first != range.second; ++range.first) in equal_range1()
60 CPPUNIT_ASSERT( *range.first == 2 ); in equal_range1()
62 range = equal_range(v.begin(), v.end(), 4); in equal_range1()
63 CPPUNIT_ASSERT( range.first == range.second ); in equal_range1()
64 CPPUNIT_ASSERT( range.first == v.end() ); in equal_range1()
95 pair<char*, char*> range = equal_range((char*)chars, (char*)chars + count, 'q', less<char>()); in equal_range2() local
96 CPPUNIT_ASSERT( (range.first - chars) == 18 ); in equal_range2()
97 CPPUNIT_ASSERT( (range.second - chars) == 22 ); in equal_range2()
98 for (; range.first != range.second; ++range.first) in equal_range2()
99 CPPUNIT_ASSERT( *range.first == 'q' ); in equal_range2()
101 range = equal_range((char*)chars, (char*)chars + count, 'm', less<char>()); in equal_range2()
102 CPPUNIT_ASSERT( (range.second - range.first) == 1 ); in equal_range2()
103 CPPUNIT_ASSERT( *range.first == 'm' ); in equal_range2()