vector_map_pool(3)

NAME
vector_map_pool, _vector_map_pool - apply function to each element of a vector

SYNOPSIS
#include <vector.h>

#define vector_map_pool(pool,v,map_fn,result_type) _vector_map_pool ((pool), (v), (map_fn), sizeof (result_type))
vector _vector_map_pool (pool, vector v, void (*map_fn_pool) (pool, const void *, void *), size_t result_size);

DESCRIPTION

Call map_fn(pool, &t, &r) for each element t of vector v. The result (r) should have type result_type and these are concatenated to form a new vector which is returned.

AUTHOR
Richard Jones <rich@annexia.org>

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

VERSION
c2lib-1.2.14