Updated all() any() none() functions to const and removed flag variables