samedi 5 décembre 2015

C++ : Check if the template type is one of the variadic template types [duplicate]

This question already has an answer here:

Let's say we have function:

template <typename Kind, typename... Kinds> void foo(){...};

What is the simplest way to check if the type 'Kind' is one of the types 'Kinds' in C++ (including C++1z)?

Aucun commentaire:

Enregistrer un commentaire