#include "tbb/tbb.h"
#include <iostream>
Go to the source code of this file.
Definition at line 13 of file tbb_pfor_01_t.cc.
15 size_t const n = 500000;
16 std::vector<double> v(n, 27.64), vr;
19 tbb::parallel_for(
br_t(v.cbegin(), v.cend()), [&vr](br_t
const&
r) ->
void {
21 vr.emplace_back(
i * 2.0);
24 std::cout << vr.back() << std::endl;
tbb::blocked_range< typename std::vector< double >::const_iterator > br_t