vector_grep - produce a new vector containing elements of the old vector which match a boolean function |
#include <vector.h> vector vector_grep (pool, vector v, int (*match_fn) (const void *)); |
This macro calls match_fn(&t) for each element t of vector v. It constructs and returns a new vector containing all those elements where the function returns true. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
c2lib-1.2.13 |