<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Some c++11 code doing parallel execution: <br>
    <pre><b>
        void f(vector<double>&);

        struct F {
                vector<double>& v;
                F(vector<double>& vv) :v{vv} { }
                void operator()();
        };

        int main()
        {
                std::thread t1{std::bind(f,some_vec)};  // </b>f(some_vec) executes in separate thread<b>
                std::thread t2{F(some_vec)};            // </b>F(some_vec)() executes in separate thread<b>

                t1.join();
                t2.join();
        }

</b></pre>
    <b>-Michael</b><br>
    <br>
  </body>
</html>