mercredi 14 novembre 2018

Meaning of const char (&)[2]

template<typename ...Ts, int... N> void g(Ts (&...arr)[N]) {}
int n[1];
g<const char, int>("a", n); // Ts (&...arr)[N] expands to 
                            // const char (&)[2], int(&)[1]

Question> What is the meaning of const char (&)[2]?

Aucun commentaire:

Enregistrer un commentaire