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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.