mercredi 4 novembre 2015

Accessing type inside std::pair passes as template parameter

I want to write a function

template <class T>
X foo (T);

where T is of type std::pair(X, X).

How can I deduce the return type X from T?

Aucun commentaire:

Enregistrer un commentaire