Skip to content

Instantly share code, notes, and snippets.

@VitaminaCPP
Created December 29, 2013 11:26
Show Gist options
  • Save VitaminaCPP/8169454 to your computer and use it in GitHub Desktop.
Save VitaminaCPP/8169454 to your computer and use it in GitHub Desktop.
Existen muchos casos en que se puede aplicar RVO, uno de los más habituales es el bucle for
// Se aplica RVO, porque el retorno de i++ NO SE USA
for (int i = 0; i < 4; i++)
{
std::cout << i << '\n';
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment