After this call , the struct is considered to be definitely assigned ; that is , all its members are initialized to their default values .
此调用后,该结构被认为已被明确赋值;也就是说该结构的所有成员均已初始化为各自的默认值。
Since your struct is a lookup criteria , it is sure that all the struct values will be different , and hence the string generated is guaranteed unique .
因为你的结构是个查询条件,能确保所有的结构的值是不同的,因此能保证产生的字符串是唯一的。
When a variable containing a struct is copied , all of the data is copied , and any modification to the new copy does not change the data for the old copy .
复制包含结构的变量时,将复制所有数据,对新副本所做的任何修改都不会改变旧副本的数据。
Suppose you want to tag classes and structs with the name of the programmer who wrote the class or struct .
假设您要用编写类或结构的程序员的名字标记类和结构。
In c + + a struct is just about the same as a class for all purposes except in the default access modifier for methods .
在c++里,除方法的默认访问修饰符,任何情况结构都跟类是一样的。
An example would be to create a string by merging all your value types in the struct and joining them by using a special character as a demarcator .
一种方法是创建一个字符串,然后把结构中所有的值类型都合并起来,并用某个特殊的字符作为分隔符。
I use the example of a struct value return type here because it is the most likely to generate a bug , since a struct return type causes the compiler to generate an objc_msgsend_stret for the message invocation instead of a regular objc_msgsend .