title: Thread safety of Vector of atomic bool
body: <p>If I have a vector:</p>
  <pre class="lang-cpp prettyprint-override"><code>std::vector&lt;std::atomic_bool&gt; v(8);
  </code></pre>
  <p>and <strong>assuming I won't modify its size post creation</strong>, is it thread safe to call:</p>
  <pre class="lang-cpp prettyprint-override"><code>bool result = v[2].compare_exchange_strong(false, true);
  </code></pre>
  <sub>
  * the values 8, 2, false and true are just given as an example use case.
  </sub>