作业帮 > 综合 > 作业

这个函数结构怎么理解inline void* CSimpleList::GetNext(void* preElement

来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/05/08 18:45:25
这个函数结构怎么理解
inline void* CSimpleList::GetNext(void* preElement) const
{ return *GetNextPtr(preElement); }
我最不能理解的就是 const 放在那个位置是什么意思
这个函数结构怎么理解inline void* CSimpleList::GetNext(void* preElement
一般加那个const的函数都是读取内容的函数
被const修饰的成员函数,表明他不会修改任何成员变量,仅仅会读.
象标准库里面所有的get函数都是const的