16,551
社区成员
发帖
与我相关
我的任务
分享
struct _CELLID_INFO
{
unsigned int nLAC;
unsigned int nRAC;
unsigned int nCellID;
_CELLID_INFO ()
{
nLAC = 0;
nRAC = 0;
nCellID = 0;
}
//重载
bool operator < (_CELLID_INFO const& IdKey) const
{
if (nLAC<IdKey.nLAC)
{
return true;
}
else if (nRAC<IdKey.nRAC)
{
return true;
}
else if (nCellID<IdKey.nCellID)
{
return true;
}
return false;
}
} ;
//重载
bool operator < (_CELLID_INFO const& IdKey) const
{
if (nLAC<IdKey.nLAC)
{
return true;
}
else if (nLAC == IdKey.nLAC && nRAC<IdKey.nRAC)
{
return true;
}
else if (nLAC == IdKey.nLAC && nRAC == IdKey.nRAC && nCellID<IdKey.nCellID)
{
return true;
}
// >=
return false;
}