B
barcaroller
I'm writing a real-time application which is currently using C++ linked
lists. The items have to be sorted. I collect the items as they come in,
search the list sequentially until I find the insertion point, and insert
the item.
This is proving to be inefficient. Is there a more efficient alternative
(maybe in Boost or standard C)?
lists. The items have to be sorted. I collect the items as they come in,
search the list sequentially until I find the insertion point, and insert
the item.
This is proving to be inefficient. Is there a more efficient alternative
(maybe in Boost or standard C)?