Re: map/multimap/wildcards
- From: "Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom>
- Date: Thu, 8 Jun 2006 19:39:17 +0100
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
.
- References:
- map/multimap/wildcards
- From: Jason S
- map/multimap/wildcards
- Prev by Date: map/multimap/wildcards
- Next by Date: Re: map/multimap/wildcards
- Previous by thread: map/multimap/wildcards
- Next by thread: Re: map/multimap/wildcards
- Index(es):