Is it safe to use STL containers STL for multiple threads if there are no inserts and only .find ()?

In C ++, is it safe to use std :: map or std :: vector at the same time in different threads, if you DO NOT insert, just perform .find () operations on it?

+3
source share
3 answers

In the current C ++ standard, there is nothing to say on the topic of streaming, and therefore does not solve this problem. However, the documentation for a specific implementation of the C ++ standard library should cover it.

+5
source

This is a specific implementation and is not guaranteed by the standard.

+4
source

. .

+1

Source: https://habr.com/ru/post/1730255/


All Articles