Interroga lo stato di array vuoto.
Sintassi |
bool is_empty() const |
---|---|
Risultato |
Rende true se l'array è vuoto, false altrimenti. |
Esempio di utilizzo:
array<int> array1 = {1 ,2, 3}; bool f1 = array1.is_empty(); /* Rende false */
array<int> array2; bool f2 = array2.is_empty(); /* Rende true */ |