isSet() or operator void*() or explicit opertor bool() or something else?
What is the state of the art about functions to check whether a value is set or not ? For example, the below iterator parses cells. Some cells contain a value, other cells are empty. What is the most convenient way? struct iterator { //usage: bool isset() const // if (it.isset()) bool isSet() const // if (it.isSet()) bool empty() const // if (it.empty()) bool is_set() const // if (it.is_set()) bool is_valid() const // if (it.is_valid()) operator void*() const; // if (it) explicit operator bool() const; // if ((bool)it) or if(it) //thanks @stijn operator bool() const; // if (it) //why not