Does anyone know of a way to check the emptiness of an array (rather array elements) without traversing it?
For example, an existing array contains 5 elements and each element has a zero value or non-zero value. Is there a fast way to check if all the elements are zero (or empty) without traversing the array? I cannot use empty() on the array itself as it has elements and therefore not empty.