YC Yc.W home Systems · C++ · AI Infrastructure
C & C++ · Note

C++-const成员函数

Explore all C & C++ notes →

const成员函数 函数不会修改类对象

用于声明不会对其隐式访问的对象进行修改的函数

原型和定义处显式声明const


← Previous C++ shared_ptr