...itive);列举值可以举行异或操作或看成标记变量(flag)时,遍及的作法是把其值生存在1个变量里,这是类型不安全的(not type-safe)。Qt4供给了1个模型板类QFlags T,此处T为列举类型。
基于12个网页-相关网页
However, if the code accesses memory at arbitrary offsets outside the range of memory that belongs to that object's publicly exposed fields, it is not type-safe.
但是,如果代码以任意偏移量访问内存,该偏移量超出了属于该对象的公开字段的内存范围,则它就不是类型安全的代码。
It is statically type-checked and does not allow type coercion, so is safe with regards to types.
它进行静态类型检查,并且不允许强制类型转换,因而对于类型而言是安全的。
One common use is for storing a singleton of a type that is not thread-safe.
一种常见用法是用于存储非线程安全类型的单例。
应用推荐