->、->* 和 .* 运算符的正确术语是什么?
维基百科将它们称为:
-> a 指向的对象的成员 b
->* a 指向的对象的 b 指向的成员
.* 对象a的b指向的成员
但是我需要在不使用“a”和“b”的情况下引用它们。他们有名字吗?
Wikipedia refers to them as:
-> Member b of object pointed to by a
->* Member pointed to by b of object pointed to by a
.* Member pointed to by b of object a
But I need to refer to them without using "a" and "b". Do they have any names?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
该标准调用了
->*
和.*
“指向成员的指针运算符”(5.5)。前者期望第一个操作数是指针类型,第二个操作数是类类型。类似地,
->
和.
被称为“类成员访问”(5.2.5),或“点”和“箭头”。The standard has calls
->*
and.*
"pointer-to-member operators" (5.5). The former expects the first operand to be of pointer type, the second of class type.Similarly,
->
and.
are called "class member access" (5.2.5), or "dot" and "arrow".如果您在对话中讨论它们,我会使用这些术语::
在撰写有关它们的内容时,我更喜欢使用其他人提到的术语。
If you're discussing them in conversation, I us the terms::
When writing about them, I prefer the terms others have mentioned.
我相信它是
指针取消引用运算符 (*)
指向成员的指针选择 (.*) [根据 < a href="http://msdn.microsoft.com/en-us/library/5tk49fh2.aspx" rel="nofollow">此处,至少]
I believe it is
pointer-dereference operator (*)
Pointer-to-member selection (.*) [according to here, at least]