What is the meaning of “operator bool() const”
Member functions of the form operator TypeName() are conversion operators. They allow objects of the class type to be used as if they were of type TypeName and when they are, they are converted to TypeName using the conversion function. In this particular case, operator bool() allows an object of the class type to be … Read more