mercredi 3 mars 2021

Difference between typename parameter pack and auto parameter pack?

Suppose I have this 2 definitions.

template<typename... Ts>
struct S{};

template<auto... Ts>
struct S{};

What's the difference between this 2 definitions?
When we should opt for the one or another?

Aucun commentaire:

Enregistrer un commentaire