首页 > 其他 > 详细

const 修饰this指针

时间:2018-08-01 23:10:11      阅读:153      评论:0      收藏:0      [点我收藏+]

技术分享图片

this指针的本质就是一个常量指针。通过const修饰this指针指向的内存空间。

void OpVar(int a  ,int b )const  <=>const void OpVar(int a  ,int b ) <=>void const  OpVar(int a  ,int b )

const 修饰this指针

原文:https://www.cnblogs.com/jefy/p/9404152.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!