Program Listing for File diploid_population.hpp

Return to documentation for file (fwdpp/diploid_population.hpp)

#ifndef __FWDPP_SUGAR_DIPLOID_POPULATION_HPP__
#define __FWDPP_SUGAR_DIPLOID_POPULATION_HPP__

#include <utility>
#include <vector>
#include <unordered_map>
#include <fwdpp/fwd_functional.hpp>
#include <fwdpp/poptypes/diploid_population.hpp>

namespace fwdpp
{
    template <typename MutationType,
              typename DiploidType = std::pair<std::size_t, std::size_t>>
    using diploid_population = poptypes::diploid_population<
        MutationType, std::vector<MutationType>, std::vector<haploid_genome>,
        std::vector<DiploidType>, std::vector<MutationType>, std::vector<uint_t>,
        // fwdpp 0.6.1 changed this from an unordered_set,
        // in order to address a rare bug. See GitHub
        // issue 130 for details.
        std::unordered_multimap<double, std::uint32_t>>;
} // namespace fwdpp
#endif