Program Listing for File recbinder.hpp

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

#ifndef FWDPP_RECBINDER_HPP__
#define FWDPP_RECBINDER_HPP__

#include <vector>
#include <functional>

namespace fwdpp
{
    template <typename T>
    inline std::function<std::vector<double>(void)>
    recbinder(T&& recmodel, const gsl_rng* r)
    {
        return [recmodel, r]() { return recmodel(r); };
    }
}

#endif