This question already has an answer here:
I would like to check if a type supplied as a template parameter has begin, i.e. if it is possible to call std::begin on it. I know that it's possible to check if a type has a specified method (related question) but std::begin seems to be a different kind of problem (though looks similar).
I tried but failed and have no idea how to solve this problem.
Aucun commentaire:
Enregistrer un commentaire