2

If I have a function f(T *) I would describe that as f takes a pointer to T.

f(T &) would be something like f takes a reference to T.

How do I pronounce f(T &&)?

oconnor0
  • 3,154
  • 6
  • 34
  • 52

2 Answers2

4

It depends on the context. When T is known type then T&& is an rvalue reference. When T is a template parameter then T&& is a universal reference.

Cheers and hth. - Alf
  • 142,714
  • 15
  • 209
  • 331
  • 1
    The C++1z Standard drafts use the term *forwarding reference* instead of *universal reference*. See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4164.pdf – dyp Jun 19 '15 at 18:00
2

That would be an "r-value reference"

Cory Kramer
  • 114,268
  • 16
  • 167
  • 218