Tag

noexcept

1 views collected around this technical thread.

Tencent Cloud Developer
Tencent Cloud Developer
Jan 24, 2022 · Fundamentals

Understanding Move Semantics in C++11

Move semantics in C++11 let objects transfer ownership of resources via rvalue references and std::move, eliminating costly copies, improving performance, requiring explicit move constructors and assignment operators—preferably marked noexcept—to keep source objects valid, enable container optimizations, and work with NRVO when copying would otherwise occur.

C++11PerformanceResource Management
0 likes · 23 min read
Understanding Move Semantics in C++11