I am learning C++. Say we have a class declaration in the form of:
class SomeClass {
public:
const Type* MyMethod(int64_t id) const;
}
What does the second const mean? There is nothing to the right of the const, so I am confused what it is modifying.
I tried using the Clockwise/Spiral Rule to detangle this, which suggests: "MyMethod() is const and returns a const Type pointer". Is that a correct read?