Boost logo

Boost Users :

Subject: Re: [Boost-users] [Multi-Index] performance difference between lower_bound() and upper_bound()
From: Dominique Devienne (ddevienne_at_[hidden])
Date: 2013-11-29 05:26:20


On Fri, Nov 29, 2013 at 10:34 AM, Joaquín Mª López Muñoz <joaquin_at_[hidden]>wrote:

> El 28/11/2013 13:55, Dominique Devienne escribió:
> Watch out: depending on how your strings look like, these two bounds are
> not equivalent. For instance:
>
> "p 9999999999" < "p 9999999999 foo" < "p :"
>
> I understand you're already taking this into account, but wanted to point
> it out just in case. Best,
>

Thanks. Useful reminder. I'm checking the end pointer returned by strtol
against the end of the string, so I discard entries which are not strictly
prefix + space + integer. --DD



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net