i am building a network intrusion detection system using visual c++ and one of its component is a tcp session manager for the whole network. The tcp session data is stored in a concurrent vector so that it can be accessed from other threads. I found out there is no easy way to remove a session from the concurrent vector once the session is closed. So my QUESTION is what is the smartest method you know of for removing items from concurrent vectors.
Smart == fairly easy to program without too much performance hit Thankyou