MCPcopy Create free account
hub / github.com/davisking/dlib / assign_element

Class assign_element

dlib/test/parallel_for.cpp:16–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 dlib::logger dlog("test.parallel_for");
15
16 class assign_element
17 {
18 public:
19
20 assign_element(
21 std::vector<int>& vect_
22 ) : vect(vect_){}
23
24 std::vector<int>& vect;
25
26 void go (long i )
27 {
28 DLIB_TEST( 0 <= i && i < (long)vect.size());
29 vect[i] = i;
30 }
31
32 void operator() (long i ) const
33 {
34 DLIB_TEST( 0 <= i && i < (long)vect.size());
35 vect[i] = i;
36 }
37
38 };
39
40 void test_parallel_for(long start)
41 {

Callers 1

test_parallel_forFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_parallel_forFunction · 0.68