tags:

views:

61

answers:

1

Is there a function that does the same thing as map::lower_bound except it returns a new sub-map and not an iterator?

Edit: The function should return a sub-map which contains all the values for which the key is equal to, or greater than a certain value (which is given as input to the function).

+5  A: 
sbi
@Marcelo: Actually, that `blah` was no accident. I find it hard to come up with a good name for a function creating a map according to some specifics. `equal_or_greater` sounds like a comparator function, not like one that creates a map.
sbi
Fair point, sbi. I personally don't mind overloading names this way since the parameters tend to resolve the confusion, and humans are pretty good at handling ambiguity anyway.
Marcelo Cantos