Is there a way to run a function as long as an array is non zero in size? : <p>Say for example my function woof() clears some array called meow[] by removing the items in it. meow[] may have items added to it by other functions, but as long as it has items in it, ie it's size is nonzero, I want woof to run and clear it. </p>

<p>How do I do this in C++?</p>
