1

I read this answer to a question about when one would want to use a forwarding reference auto&& in a range-based for loop, where the author writes:

The only advantage I can see is when the sequence iterator returns a proxy reference and you need to operate on that reference in a non-const way.

I could not find any easily accessible information about what a proxy reference is. What is it and why would one want to use it?

Jason
  • 36,170
  • 5
  • 26
  • 60

0 Answers0