title: Append structs to a vector<uint8_t>
body: <p>I'm writing a message comuniction lib, and need to read some data to a struct, and append this struct to a vector, and read again, append again.</p>
  
  <p>If in C language, memcpy works perfect, but I want is to make all code in C++11 code style.</p>
  
  <p>I tried to use std::copy, but it needs a begin and end interator, so how exactly I can use std::copy like <code>std::copy(&amp;a, &amp;a + sizeof(A), back_inserter(buffer));</code>?</p>