Is it possible to get next node/element directly from node/element? Like so:
struct Data{
boost::intrusive::list_member_hook<> node;
Data* get_next(){
node.get_next() ???
}
}
Is it possible to get next node/element directly from node/element? Like so:
struct Data{
boost::intrusive::list_member_hook<> node;
Data* get_next(){
node.get_next() ???
}
}
Copyright © 2021 Jogjafile Inc.
Many boost intrusive containers have a static member function
s_iterator_to
to get an iterator directly from a value.Thus you can get an iterator then use the iterator interface:
Live Demo