Boost logo

Boost Users :

Subject: Re: [Boost-users] [multi-index] looking for "not greater than"
From: Igor R (boost.lists_at_[hidden])
Date: 2010-06-23 11:51:18


> Is this a homework? I hope not :-)

I had done all my homeworks many years ago :).

> What I use is get an upper_bound and decrement the iterator.  Of course,
> depending on the situation, you may also use reverse ordering and lower_bound.

Ok, thanks.
I just thought there might be some more direct & elegant way that I missed.


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