oneTBB icon indicating copy to clipboard operation
oneTBB copied to clipboard

How to delete a item in tbb::concurrent_vector ;

Open bayueqiankong opened this issue 1 year ago • 2 comments

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.

bayueqiankong avatar Sep 05 '23 08:09 bayueqiankong

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 avatar Sep 07 '23 10:09 kboyarinov

@kboyarinov is this issue still relevant?

arunparkugan avatar Aug 13 '24 08:08 arunparkugan