title: Standard replacement for QByteArray
body: <p>I want to port a Qt C++11 function to standard C++11. The function has a <code>QByteArray</code> parameter that accepts any kind of data (text, binary data, etc.) and calculates a hash from the data.</p>
  
  <p><code>QByteArray</code> seems well suited because it can carry any kind of data and has a lot of functions that allow filling it from streams, devices, strings, etc. <strong>It even can wrap data without doing a deep copy using <code>fromRawData()</code>.</strong></p>
  
  <p>Is there a standard C++11 solution that provides similar flexibility? Currently I tend to use good old <code>void*</code> plus size.</p>