title: How to convert std::string to std::vector<uint8_t>?
body: <p>The data format required to save games on google play game services is : <code>std::vector&lt;uint8_t&gt;</code> as specified under 'Data formats' on:
  <a href="https://developers.google.com/games/services/cpp/savedgames" rel="noreferrer">https://developers.google.com/games/services/cpp/savedgames</a></p>
  
  <p>I am assuming the vector represents some kind of byte array. Is that correct ? So how does one convert an <code>std::string</code> to <code>std::vector&lt;uint8_t&gt;</code> ?</p>