Thread safety of C++ std Containers

前端 未结 4 775
滥情空心
滥情空心 2020-12-11 01:48

I read a lot of posts here with the question if the standard containers for C++ (like \"list\" or \"map\" are thread safe and all of them said that it is not in general. Par

4条回答
  •  悲&欢浪女
    2020-12-11 02:22

    Before C++11, there was no notion of "thread" in the Standard. So, the question whether a container is thread-safe is meaningless in context of C++03.

提交回复
热议问题