Re: map/multimap/wildcards

Tech-Archive recommends: Fix windows errors by optimizing your registry



any suggestions?

Use lower_bound, upper_bound, equal_range member functions. E.g.

it1 = m.lower_bound("m");
it2 = m.upper_bound("z");

gives you a range and it should be such that

for(; t1 != it2; ++it1)
{
// Will iterate over strings >= "m" and < "z"
}

and that chops out strings from "a" to "l" etc.

Stephen Howe


.