Template Function fwdpp::filter_keys

Function Documentation

template<typename F>
void fwdpp::filter_keys(std::vector<std::pair<std::size_t, uint_t>> &keys, F f)

Apply a filter to the keys.

Takes the data returned from mutation_keys and applies a filtering function. The implementation is simply a wrapper around the erase/remove idiom.

Parameters
  • keys:

  • f: A function taking the value_type in keys and returning true if item should be removed