The cancer-color proliferation also has created some quirky chromatic overlaps. Orange represents two cancers (kidney, leukemia). Green stands for three (liver, lymphoma gall bladder). Variations of purple signify six (pancreatic, testicular, leiomyosarcoma, Hodgkin lymphoma, stomach and esophageal).
All standard iterator and container types behave the same in this regard: Â§23.2.1 [container.requirements.general] p6. begin() returns an iterator referring to the first element in the container.
There's no such concept in C++. So since each array element has a value (whether explicitly or implicitly initialized, or just full of garbage), the only way you can do such a test is if you yourself defined what value or values would indicate that element to be empty.