title: std::transform using C++0x lambda expression
body: <p>How is this done in C++0x?</p>
  
  <pre><code>std::vector&lt;double&gt; myv1;
  std::transform(myv1.begin(), myv1.end(), myv1.begin(),
                 std::bind1st(std::multiplies&lt;double&gt;(),3));
  </code></pre>
  
  <p>Original question and solution is <a href="https://stackoverflow.com/questions/3885095/c-multiply-vector-elements-by-a-scalar-value-using-stl">here</a>.</p>