mardi 21 mai 2019

Is a parameter pack a template parameter?

cppreference writes that a template parameter pack is a template parameter:

https://en.cppreference.com/w/cpp/language/parameter_pack

Is it true? For example, is it correct to write something like this:

template<typename T...>
class MyClass {
    std::unique_ptr<T...> m_data;
};

Aucun commentaire:

Enregistrer un commentaire