I am trying to provide my allocator for the tbb::concurrent_unordered_map to do a custom action on the value, but the destroy method of the allocator receives a pointer of the flist_iterator type which has the protected my_node_ptr variable. So I can not access it.
What is the right way to provide a custom action on the destroy? (besides modifying the tbb source code)
Note: the value is a pointer and I can not wrap it into a struct as value, I need to have my allocator.