NYC's Blog - C++的const成员函数和this指针以及mutable关键字 的评论 http://niyanchun.com/const-this-pointer-mutable-keyword-in-cpp.html zh-CN 成员函数是类的一部分,其定义与普通函数一样,没有特殊之处。但是需要注意以下一些特点: 编译器隐式的将在类内部定义的成员函数当做内联函数(不管有没有使用inline关键字)。 在成员函数的声明... Sat, 02 Apr 2016 22:30:06 +0800 Sat, 02 Apr 2016 22:30:06 +0800 NYC http://niyanchun.com/const-this-pointer-mutable-keyword-in-cpp.html/comment-page-1#comment-69 http://niyanchun.com/const-this-pointer-mutable-keyword-in-cpp.html/comment-page-1#comment-69 Sat, 02 Apr 2016 22:30:06 +0800 NYC 嗯嗯,你提醒的对。const指针不是指向const对象的指针,而是说指针本身不能再被改变(即不能再指向其他对象)。谢谢提醒~

]]>
http://niyanchun.com/const-this-pointer-mutable-keyword-in-cpp.html/comment-page-1#comment-69#comments
NYC http://niyanchun.com/const-this-pointer-mutable-keyword-in-cpp.html/comment-page-1#comment-68 http://niyanchun.com/const-this-pointer-mutable-keyword-in-cpp.html/comment-page-1#comment-68 Sat, 02 Apr 2016 22:30:06 +0800 NYC 嗯嗯,你提醒的对。const指针不是指向const对象的指针,而是说指针本身不能再被改变(即不能再指向其他对象)。谢谢提醒~

]]>
http://niyanchun.com/const-this-pointer-mutable-keyword-in-cpp.html/comment-page-1#comment-68#comments
小熊不哭 http://niyanchun.com/const-this-pointer-mutable-keyword-in-cpp.html/comment-page-1#comment-67 http://niyanchun.com/const-this-pointer-mutable-keyword-in-cpp.html/comment-page-1#comment-67 Wed, 27 Jan 2016 23:00:58 +0800 小熊不哭
  • const成员函数中划黄线中const指针不是指向const对象的指针
  • ]]>
    http://niyanchun.com/const-this-pointer-mutable-keyword-in-cpp.html/comment-page-1#comment-67#comments