mardi 31 mai 2016

Match template parameter to template type

How would I write template or constexpr code such that match is true only if Ts contains an instance of A?

template <std::uint32_t, int, int>
struct A;

template <typename... Ts>
struct X
{
    constexpr bool match = ???;
};

Aucun commentaire:

Enregistrer un commentaire