按位常数和概念常数之间的区别? [英] Difference between Bitwise constness and conceptual constness?
本文介绍了按位常数和概念常数之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在有效的C ++中......他们提到了BITWISE const和CONCEPTUAL contness ..
我感到困惑。
所以请帮我一些例子...
In Effective C++.. They mention the BITWISE const and CONCEPTUAL contness..
I am get confused.
so pls help me with some examples...
推荐答案
这里有一些(演员/可变)示例:
按位const意味着对象中的每个位都是永久的,因此对象的位图将永远不会改变。逻辑const意味着,虽然整个对象在概念上是不变的,但逐个成员可能会有变化 [ ^ ] :))
There are some (cast/mutable) examples here:
Bitwise const means that every bit in the object is permanent, so a bit image of the object will never change. Logical const means that, although the entire object is conceptually constant, there may be changes on a member-by-member basis[^] :)
这篇关于按位常数和概念常数之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文