C++运算符重载

写在结构体里面,布尔类型,operator后跟符号,只有一个参数,参数列表后加const

bool operator <(ElemType b) const
{
    if() return true;
}

原文地址:https://www.cnblogs.com/YuQiao0303/p/9625921.html