7

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?

Yakk - Adam Nevraumont
  • 262,606
  • 27
  • 330
  • 524
Pubby
  • 51,882
  • 13
  • 139
  • 180

3 Answers3

6

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".

Raydel Miranda
  • 13,825
  • 3
  • 38
  • 60
Kerrek SB
  • 464,522
  • 92
  • 875
  • 1,084
2

If you're discussing them in conversation, I us the terms::

->   "Arrow"  eg. "B-arrow-A"
->*  "Arrow-star"  eg.  "B-arrow-star-A" 
.*   "Dot-star"    eg.  "B-dot-star-A"

When writing about them, I prefer the terms others have mentioned.

abelenky
  • 63,815
  • 23
  • 109
  • 159
1

I believe it is

  • member access operator (–>)
  • pointer-dereference operator (*)

  • Pointer-to-member selection (.*) [according to here, at least]

sehe
  • 374,641
  • 47
  • 450
  • 633