const int &func (int a, int b) const; what is the meaning of first "const" and last "const"? what is the meaning of "&"?
d*x
2 楼
...
【在 z*y 的大作中提到】 : const int &func (int a, int b) const; : what is the meaning of first "const" and last "const"? : what is the meaning of "&"?
H*s
3 楼
This function returns a constant integer reference, this member function is a constant function that won't change any member variables of the associated class.