oneTBB
oneTBB copied to clipboard
How to delete a item in tbb::concurrent_vector ;
I am using tbb::concurrent_vector container in my project. If delete all items,I can use clear() function . But if want to delete a item,I do not know how to finish. There are not erase() and remove() function.
Hi @bayueqiankong,
For now tbb::concurrent_vector
does not allow concurrent erasure of single of multiple elements. And unfortunately, we don't have any "unsafe" versions for such an API.
We can consider adding an API for erasing elements but it would be unsafe to use it in concurrent environment.
Thank you for detecting the necessity of such an API.
@kboyarinov is this issue still relevant?