O
Onix
Hi guys,
I'm reading a code and I saw this function decoration for a test class
(in the test.h file)
const int *getitem() const;
The associated one in test.cpp file
const int *test::getitem() const {return &blah; }
What I want to know is the role of each "const" here. I'm confused. If
anyone can help, I really appreciate
I'm reading a code and I saw this function decoration for a test class
(in the test.h file)
const int *getitem() const;
The associated one in test.cpp file
const int *test::getitem() const {return &blah; }
What I want to know is the role of each "const" here. I'm confused. If
anyone can help, I really appreciate