title: memory layout of vector<bool>
body: <p>Can someone please explain the memory layout of the data stored in a <code>vector&lt;bool&gt;</code>?</p>
  
  <p>like what layout does the memory have from address <code>&amp;myVec[0]</code> upwards? Does it depend on endianness? Is the memory continguous for all stored values? (i'm aware that <code>vector&lt;bool&gt;</code> doesn't actually store booleans). can I dump the content of a <code>vector&lt;bool&gt;</code> into a file using memcopy to get a bitmap of my values?</p>
  
  <p>please no questions like "what do you need it for" or suggestions like using bitsets or boost.</p>
  
  <p>Thank you for an accurate explanation</p>