const-method
Calling a const function rather than its non-const version
I tried to wrap something similar to Qt\'s shared data pointers for my purposes, and upon testing I found out that when the const function should be called, its non-const version was chosen instead.[详细]
2023-04-01 21:08 分类:问答What can a 'const' method change?
C++ methods allow a const qualifier to indicate that the object is not changed by the method. But what does that mean? Eg. if the instance variables are pointers, does it mean that the pointers are no[详细]
2023-03-23 05:07 分类:问答const member functions can call const member functions only?
Do const member functions call only const member functions? class Transmitter{ const static string msg;[详细]
2023-02-02 14:19 分类:问答Should I declare these methods const?
I\'m working on some C++ code where I have several manager objects with private methods such as void NotifyFooUpdated();[详细]
2023-01-20 23:07 分类:问答小艺小艺声音怎么换?
小艺小艺声音怎么换?不同品牌手机里的语音助手名字不同,比如华为手机里的语音助手名字叫小艺,小米手机里的语音助手叫小爱,而且它们的声音也是可以自由更换开发者_Go百科的,这里小编以华为手机为例,手把手来教大[详细]
2022-12-23 14:02 分类:问答