c++ mutable

71 阅读1分钟

mutable: 易变的

修饰成员变量

表示该变量可被const修饰的函数修改

修饰lambda表达式

表示lambda表达式可对捕获的变量进行修改