Is there a way to call std::transform with a function with multiple arguments
<p>Hello I have a function which signature is </p>

<p>std::string f(double x, double param1, double param2, double param3);</p>

<p>I would like to call it on a std::vector xvalues for the parameter x using something like std::transform for a particular value of param1, param2 and param3.</p>

<p>It would be the equivalent of:</p>

<pre><code>double param1(1.);
double param2(1.1);
double param3(1.2);
std::vector&lt;std::string&gt; results();
for (std::vector&lt;double&gt;::const_iterator it = xvalues.begin() ; it != xvalues.end() ; ++xvalues)
{
  results.push_back(f(*it, param1, param2, param3);
}
</code></pre>

<p>How can this be done in a more elegant manner ?</p>

<p>Kind regards
Tony</p>
