该术语等效'平均C++标准?
根据,第421页,表23 - CopyAssignable,它说表达式t = v
copyAssignable类型的条件是
t等于v,v的值不变
但我不确定“等效”一词在这里意味着什么。是指t == v
吗?还是类似所有字节的东西在“ deepcopy”意义上是等效的“深度”?
According to the draft of the C++ 11 standard, page 421, Table 23 — CopyAssignable, it says that post-condition of an expression t = v
of copyassignable type is
t is equivalent to v, the value of v is unchanged
But I'm not sure what the term 'equivalent' means here. Is it mean t == v
? Or something like all bytes are equivalent 'deeply' in sense of 'deepcopy'?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,标准中的“等效”一词没有单独的定义。它可以解释为普通英语。以下是字典中的一些定义:
其他解释的目的是,您的报价是在这种情况下,等效的定义是,所讨论类型的平等含义是由该类型的分配操作员定义的。
As far as I can tell, there is no separate definition of the term "equivalent" that would apply in the standard. It may be interpreted as plain English. Here are a few definitions from dictionaries:
Another interpretation is that your quote is the definition for equivalent in this context i.e. the meaning of equality for the type in question is defined by the assignment operator of that type.