C++中const的使用

const  T  ***  const   var_name

用英文的原话理解,从右向左读, * 为 pointer,每多一层加一次 to.

读作:

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

 

猜你喜欢

转载自www.cnblogs.com/zeroisbug/p/8979769.html