19 Mar
2013
19 Mar
'13
2:19 p.m.
Using boost::multiindex, I am looking for a method to retrieve the the last element. Something like rbegin().
Check http://www.boost.org/doc/libs/1_53_0/libs/multi_index/doc/reference/multi_in.... If the first index type you introduced by indexed_by instantuation is hashed_index, you will not have rbegin() function since hashed_index does not provide one. Otherwise, tc.rbegin() call will do the same as tc.get<0>().rbegin(). I may be wrong (please correct me if it is), but I hope this will help. -- Regards, Stas.