eqlrnge0.cpp
eqlrnge0.cpp
#include ‹stl.h›
#include ‹iostream.h›
int numbers[10] = {0, 0, 1, 1, 2, 2, 2, 2, 3, 3};
int main() {
pair ‹int*, int*› range;
range = equal_range(numbers, numbers + 10, 2);
cout ‹‹ "2 can be inserted from before index " ‹‹ (range.first - numbers)
‹‹ " to before index " ‹‹ (range.second - numbers) ‹‹ endl;
return 0;
}