mardi 31 octobre 2017

what the meaning of c++11 codes using member function like below

i do not understand "R (F::* /mf/)" ,R is a type ,after R it should be a reference parameters

template<typename F, typename R>
Fty make_adaptor(F fn, R (F::* /*mf*/)(const SemanticValues& sv) const) 
{
    return TypeAdaptor<R>(fn);
}

Aucun commentaire:

Enregistrer un commentaire