vendredi 5 novembre 2021

Is this a list initialization or a value initialization

int i {};

Is this List Initialization or Value Initialization?

I can't distinguish them because I can't understand this sentence: a possibly empty brace-enclosed list of expressions or nested braced-init-lists from the link: https://en.cppreference.com/w/cpp/language/list_initialization

Aucun commentaire:

Enregistrer un commentaire