While trying to understand Rvalue references from here, I am unable to understand two things
- If there are N strings in the vector, each copy could require as many as N+1 memory allocations and [...]
What is this +1 in 'N+1'?
2.How the author suddenly arrives at the below guideline
Guideline: Don’t copy your function arguments. Instead, pass them by value and let the compiler do the copying.
Am I missing something?