vector_grep_pool

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
LICENSE
VERSION

NAME

vector_grep_pool - produce a new vector containing elements of the old vector which match a boolean function

SYNOPSIS

#include <vector.h>

vector vector_grep_pool (pool, vector v, int (*match_fn) (pool, const void *));

DESCRIPTION

This macro calls match_fn(pool, &t) for each element t of vector v. It constructs and returns a new vector containing all those elements where the function returns true.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

GNU LGPL (see http://www.gnu.org/)

VERSION

c2lib-1.2.13