In function below, how to tell the compiler that Iterator is the iterator of Cont ?
template<typename Cont, typename Pred> Iterator<Cont> find_if(const Cont &c, Pred p) { return std::find_if(std::begin(c), std::end(c), p); }
Aucun commentaire:
Enregistrer un commentaire