@@ -29,7 +29,7 @@ Sample usage
29
29
std::cout << "hello from " << id << '\n';
30
30
}</code >
31
31
32
- <code >	 ;	 ; struct Second {
32
+ <code >  ;  ; struct Second {
33
33
void operator()(int id) const {
34
34
std::cout << "hello from " << id << '\n';
35
35
}
@@ -40,20 +40,20 @@ Sample usage
40
40
41
41
<code >int main () {</code >
42
42
43
- <code >	 ;	 ;	 ;	 ; ctpl::thread_pool p(2 /* two threads in the pool * /);</code >
43
+ <code >  ;  ;  ;  ; ctpl::thread_pool p(2 /* two threads in the pool * /);</code >
44
44
45
- <code >	 ;	 ;	 ;	 ; p.push(first); // function</code >
45
+ <code >  ;  ;  ;  ; p.push(first); // function</code >
46
46
47
- <code >	 ;	 ;	 ;	 ; p.push(third, "additional_param");</code >
47
+ <code >  ;  ;  ;  ; p.push(third, "additional_param");</code >
48
48
49
- <code >	 ;	 ;	 ;	 ; p.push( [ ;] ; (int id){
49
+ <code >  ;  ;  ;  ; p.push( [ ;] ; (int id){
50
50
std::cout << "hello from " << id << '\n';
51
51
}); // lambda</code >
52
52
53
- <code >	 ;	 ;	 ;	 ; p.push(std::ref(second)); // functor, reference</code >
53
+ <code >  ;  ;  ;  ; p.push(std::ref(second)); // functor, reference</code >
54
54
55
- <code >	 ;	 ;	 ;	 ; p.push(const_cast< ; const Second &> ; (second)); // functor, copy ctor</code >
55
+ <code >  ;  ;  ;  ; p.push(const_cast< ; const Second &> ; (second)); // functor, copy ctor</code >
56
56
57
- <code >	 ;	 ;	 ;	 ; p.push(std::move(second)); // functor, move ctor</code >
57
+ <code >  ;  ;  ;  ; p.push(std::move(second)); // functor, move ctor</code >
58
58
59
59
<code >}</code >
0 commit comments