bool operator < (const test &m) 这里->const<-这里 { if(a<m.a) return false; else return true; }
如上代码,为什么要在我标记的地方加一个const?
(✿◡‿◡)有大佬解释一下吗