I came across rvo(Return value optimizatio) and to be honest, i have three questions about rvo.
- In which cases must a compiler do rvo (according to the standard complient)?
- In which cases is the compiler not allowed to do rvo (according to the standard complient)?
- In which cases can't the compiler perform rvo?