mercredi 31 mai 2017

If creating a generic template API that supports returning a variadic list of types, should I use std::tuple or something else?

So, I have a template API that I want to publish. This API returns a class type that contains a list of types.

In general, should I use std::tuple<> to specify this or should I use something else that may be more lightweight?

I think I've heard that std::tuple<> could result in slightly slower compile times. Is this true?

Aucun commentaire:

Enregistrer un commentaire