Boost logo

Boost Users :

Subject: [Boost-users] accessing last element in boost multi-index
From: Mahmood Naderan (nt_mahmood_at_[hidden])
Date: 2013-03-19 07:59:26


Hi Using boost::multiindex, I am looking for a method to retrieve the the last element. Something like rbegin(). As I looked in to the manual page, http://www.boost.org/doc/libs/1_53_0/libs/multi_index/doc/tutorial/basics.html, I could not find such function. Problem with end() is that it points to the last_element+1 which is null.   Regards, Mahmood


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