In which case benificial declares a method or function using const & instead of using const? I know that using const says that this method does not change the members of the class, but what exactly happens when I add the link sign after?
Example:
int myclass::getInteger() const& {
return theInt;
}
By the way, is this the so-called reference quartz? And more importantly, what does the reference sign say about the getInteger method? Thank!
source
share