Например:
operator bool() const { return col != 0; }
col - это int. Как работает operator bool () const ?
col
operator bool () const