vendredi 29 juillet 2022

Integer sequence as a non-type template parameter

I'd like to pass several arbitrary length integer sequences as non-type parameters to a template class, so the instantiation would look something like this:

Foo<Bar, {1,2,3,4}, {5,6,7}> foo;

Is there a simple way to do this, possibly with C++11?

Aucun commentaire:

Enregistrer un commentaire