title: Is it possible to create an atomic vector or array in C++?
body: <p>I have some code which uses an array of int (<code>int[]</code>) in a thread which is activated every second.</p>
  
  <p>I use <code>lock()</code> from <code>std::mutex</code> to lock this array in this thread.</p>
  
  <p>However I wonder if there is a way to create an atomic array (or vector) to avoid using a mutex? I tried a couple of ways, but the compiler always complains somehow?</p>
  
  <p>I know there is a way to create an array of atomics but this is not the same.</p>