I want access a STL based container read-only from parallel running threads. Without using any user implemented locking. The base of the follow
Yes, you are right. You are safe as long as the thread that populates your vector finishes doing so before the reader threads start. There was a similar question recently.