[Cs3] remove_copy_if() and Re: material to be tested on the midterm

Mikhail Nesterenko mikhail at cs.kent.edu
Wed Mar 1 17:28:18 EST 2023


so as not to cause confusion, I decided not to modify the algorithms
slides. However, in the lab, there mentioned remove_copy_if() that is
not in the slides. remove_copy_if() has an unfortunate name and simple
operation: it copies the elements for which the callback returns
false(). That is, it is kind of an invese copy_if.

Here is its example operation:

http://www.cs.kent.edu/~mikhail/classes/cs3/Examples/STLAlgorithms/Modifying/removeCopyIf.cpp

Thanks,
--
Mikhail

Mikhail Nesterenko wrote:
> CS3 students,
> 
> Just to confirm the material tested on the midterm. 
> 
> Since we discussed the sorting algorithms, let us
> include them in the midterm. So everything from the beginning of the
> semester up to and including slide 22 (sorting alogrithms)
> 
> Now, I am planning to modify the slides a little bit (break up the
> preivous slide into two) so slide 22 may become 23 (I'll email when I
> upload the new slides).
> 
> Thanks,
> -- 
> Mikhail


More information about the cs3 mailing list