原文链接:https://blog.csdn.net/znzxc/article/details/80385995
特点
- operator bool () 提供一个本类型到bool的隐式转换,不允许使用参数。
- bool operator ==()可分为两种(优先使用):
- bool operator ==( const bool& other) —与bool类型的比较
- bool operator ==( const T& other),T代表类型。—与本类的比较
原文链接:https://blog.csdn.net/znzxc/article/details/80385995