0

I was looking over some code and noticed this:

typedef T * iterator;

I was wondering if this is different from typedef T* iterator?

Victor M
  • 603
  • 4
  • 22
  • FWIW, if you switch to the `using` syntax, it becomes much easier to avoid this confusion: `using iterator = T*` or `using iterator = T *` or `using iterator = whatever else` – NathanOliver Mar 05 '21 at 02:43
  • No, it doesn't make any difference at all. While the target doesn't mention `typedef` specifically, the rules are identical. – cigien Mar 05 '21 at 02:44

0 Answers0