What is the correct term for operators ->, & # 8594; * and. *?

Wikipedia refers to them as:

-> Participant b of the object pointed to by * * The participant pointed to by object b pointed to by a. * The member pointed to by b of object a

But I need to access them without using "a" and "b". Do they have names?

+6
source share
3 answers

There are calls in the standard ->* and .* "Operator pointers to an operator" (5.5). The first expects the first operand to be of type pointer, the second type of class.

Similarly, -> and . called "access to class members" (5.2.5) or "point" and "arrow".

+5
source

If you discuss them in a conversation, I have the conditions ::

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

When you write about them, I prefer the terms that others have spoken about.

+2
source

I believe that this

  • member access operator (->)
  • Pointer-dereference operator (*)

  • Selecting a pointer to an element (. *) [As per here , at least]

+1
source

Source: https://habr.com/ru/post/898027/


All Articles