Template Function fwdpp::sugar::collect_haploid_genomes¶
Defined in File add_mutation.hpp
Function Documentation¶
-
template<typename
poptype, typename = std::enable_if<std::is_same<typename poptype::popmodel_t, fwdpp::poptypes::DIPLOID_TAG>::value>>
std::unordered_map<std::size_t, std::vector<typename poptype::diploid_type::first_type*>>fwdpp::sugar::collect_haploid_genomes(poptype &p, const std::vector<std::size_t> &indlist, const std::vector<short> &clist)¶ Helper function for add_mutation and add_mutations.
Collects together all the haploid_genomes that will be updated, to minimize the number of new haploid_genomes created.