1. 程式人生 > >C++中const的使用

C++中const的使用

section star str c++ 使用 nbsp input -s ron

const T *** const var_name

用英文的原話理解,從右向左讀, * 為 pointer,每多一層加一次 to.

讀作:

declare var_name as a const pointer to a pointer to a pointer to a const T

C++中const的使用