title: How can I get a pointer to the first element in an std::vector?
body: <p>I want to write data from an <code>std::vector&lt;char&gt;</code> to a socket, using the <code>write</code> function, which has this prototype:</p>
  
  <pre><code>ssize_t write(int, const void *, size_t);
  </code></pre>
  
  <p>The second argument to this function must be a pointer to the first element in the <code>std::vector&lt;char&gt;</code>. How can I get a pointer to this element?</p>
  
  <p>I tried <code>std::vector::front</code> but this returns a reference, while I need a pointer.</p>