omment of line apply(pop, eval) was found misleading ...
This commit is contained in:
parent
b5382fce74
commit
c00c15145d
4 changed files with 4 additions and 4 deletions
|
|
@ -79,7 +79,7 @@ void main_function(int argc, char **argv)
|
|||
// Initialization of the population
|
||||
eoPop<Indi> pop(POP_SIZE, random);
|
||||
|
||||
// and evaluate it in one loop
|
||||
// and evaluate it in one line
|
||||
apply<Indi>(eval, pop); // STL syntax
|
||||
|
||||
// OUTPUT
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ void main_function(int argc, char **argv)
|
|||
// Initialization of the population
|
||||
eoPop<Indi> pop(POP_SIZE, random);
|
||||
|
||||
// and evaluate it in one loop
|
||||
// and evaluate it in one line
|
||||
apply<Indi>(eval, pop); // STL syntax
|
||||
|
||||
// OUTPUT
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ The actual code is in boldface and the comment in normal face.
|
|||
<b> random(VEC_SIZE, boolean_generator());</b><br>
|
||||
<b> </b>// Initialization of the population<br>
|
||||
<b> eoPop<Indi> pop(POP_SIZE, random);</b><br>
|
||||
<b> </b>// and evaluate it in one loop<br>
|
||||
<b> </b>// and evaluate it in one line<br>
|
||||
<b> apply<Indi>(eval, pop); </b>// STL syntax<br>
|
||||
</font></tt>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ The actual code is in boldface and the comment in normal face.
|
|||
<b> </b>// Initialization of the population<br>
|
||||
<b> eoPop<Indi> pop(POP_SIZE, random);</b><br>
|
||||
<b> </b><br>
|
||||
<b> </b>// and evaluate it in one loop<br>
|
||||
<b> </b>// and evaluate it in one line<br>
|
||||
<b> apply<Indi>(eval, pop); </b>// STL syntax<br>
|
||||
</font></tt>
|
||||
</td>
|
||||
|
|
|
|||
Reference in a new issue