Tag: RVO
4 posts
-
[2026] C++ Copy Initialization | The `= expr` Form
Copy initialization uses `T x = expr`. Differs from direct and list initialization; explicit constructors excluded; RVO and elision often remove actual ...
-
[2026] C++ return Statement: Values, References, RVO, and optional
How return ends functions, when references are safe, RVO/NRVO vs std::move, multi-value returns with pair/tuple/optional, and common lifetime mistakes.
-
[2026] C++ RVO and NRVO | Return Value Optimization Complete Guide
RVO vs NRVO: when the compiler elides copies on return, C++17 guaranteed elision for prvalues, NRVO heuristics, and interaction with move semantics.
-
[2026] C++ Temporary Objects: Lifetime, const&, RVO, and Pitfalls
C++ temporaries: full-expression rules, lifetime extension with const& and rvalue refs, dangling pointers from c_str(), RVO/NRVO, and performance tips.