c++ top-level const and low-level const

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/this_is_me_anyway/article/details/79973817
2.4.3.Top-Level const
       As we’ve seen, a pointer is an object that can point to a different object. As a result,
we can talk independently about whether a pointer is const and whether the objects
to which it can point are const. We use the term top-level const to indicate that the
pointer itself is a const. When a pointer can point to a const object, we refer to
that const as a low-level const.

摘自英文版 Primer C++,个人觉得英文版看起来还是容易理解点的。

阅读更多 登录后自动展开
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页