Boost.Intrusive: getting the next element
Gonzalo Arana via Boost-users <[email protected]>
| Newsgroups | gmane.comp.lib.boost.user |
|---|---|
| Message-ID | <CAB4pDs8SAYJp-57QkEKArwCL7bov+kAJv8hWptk=1WKg4NDxSw@mail.gmail.com> |
Hi, Given an element (contained in a list), how may I get the next one, without requiring access to the list itself? I only found this way to get the next element: auto iterator = list.iterator_to(value); ++iterator; return *iterator; But it requires access to the list itself. Best regards, -- Gonzalo A. Arana _______________________________________________ Boost-users mailing list [email protected] https://lists.boost.org/mailman/listinfo.cgi/boost-users