Boost logo

Boost Users :

Subject: [Boost-users] multi index container descending order, without reverse iterator
From: Andrew Kokkalis (andrewkokkalis_at_[hidden])
Date: 2010-03-01 09:04:22


Hello,

I'm using a multi_index container, non uniquely ordered by a float.

I want to access it by descending order, but when i'm using reverse
iterator, i cannot use erase.
Is there an way to delete the last element?
it--; is not defined.
erase(data_set.end()) does not work , end indicates after the last element.

Thank you very much, i'm in great hurry, and i don't have time to look the
tutorials right now.

Thank you in advance,
Andrew Kokkalis



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