YuNing's Thought

Home

❯

Notes

❯

Copy Elision

Copy Elision

Dec 30, 20251 min read

Overview

copy elision can be applied even if copying/moving the object has side-effects**. You shouldn’t have critical logic inside copy/move-constructors or destructors, as you can’t rely on them being called.

Links

  • c++ - What are copy elision and return value optimization? - Stack Overflow

Graph View

  • Overview
  • Links

Backlinks

  • Optimization

Created with Quartz v4.5.2 © 2025

  • GitHub
  • Discord Community