Tagged articles
13 articles
Page 1 of 1
php Courses
php Courses
Sep 22, 2025 · Fundamentals

Boost C++ Performance: Proven Memory Management Techniques You Must Use

This article explores why efficient memory management is crucial for C++ performance and presents practical strategies—including stack allocation, RAII, smart pointers, custom memory pools, optimal containers, move semantics, and diagnostic tools—to write faster, more robust programs.

CPerformance OptimizationRAII
0 likes · 9 min read
Boost C++ Performance: Proven Memory Management Techniques You Must Use
php Courses
php Courses
Sep 8, 2025 · Fundamentals

Mastering C++ Move Semantics: From Lvalues to Efficient Resource Transfer

This article explains C++11 move semantics, covering the distinction between lvalues and rvalues, the role of rvalue references, how std::move enables resource stealing, and how to implement move constructors and move assignment operators for high‑performance code.

CResource Managementmove semantics
0 likes · 11 min read
Mastering C++ Move Semantics: From Lvalues to Efficient Resource Transfer
Deepin Linux
Deepin Linux
Aug 25, 2025 · Fundamentals

Mastering std::move and std::forward: A Deep Dive into C++ Value Categories

This article explains the concepts of lvalues and rvalues in C++, how std::move converts a named object into an rvalue to enable move semantics, and how std::forward preserves the original value category for perfect forwarding in template functions, illustrated with clear examples and code snippets.

Clvaluemove semantics
0 likes · 26 min read
Mastering std::move and std::forward: A Deep Dive into C++ Value Categories
Deepin Linux
Deepin Linux
Jul 24, 2025 · Fundamentals

Boosting Large-Scale std::vector Performance: Memory, Moves, and SIMD

This article examines why std::vector can become a bottleneck when handling millions of elements, analyzes memory consumption, insertion/deletion costs, and cache behavior, and presents practical optimizations such as pre‑allocation, move semantics, SIMD vectorization, and cache‑friendly designs illustrated with real‑world case studies and code examples.

CMemory OptimizationSIMD
0 likes · 21 min read
Boosting Large-Scale std::vector Performance: Memory, Moves, and SIMD
Deepin Linux
Deepin Linux
Jul 9, 2025 · Fundamentals

Mastering Perfect Forwarding in C++: Boost Performance and Flexibility

This article explains the concept of perfect forwarding in C++11, demonstrates how to preserve value categories using universal references and std::forward, and provides practical examples such as generic factory functions, wrapper functions, reference collapsing rules, and common pitfalls to avoid.

CUniversal Referencesmove semantics
0 likes · 21 min read
Mastering Perfect Forwarding in C++: Boost Performance and Flexibility
Deepin Linux
Deepin Linux
Jun 20, 2025 · Fundamentals

Unlock C++11: 10 Game‑Changing Features Every Developer Must Master

This article walks through the most impactful C++11 enhancements—including initializer lists, auto type deduction, decltype, smart pointers, lambda expressions, move semantics, range‑based for loops, nullptr, constexpr, type aliases, and the thread library—explaining their syntax, benefits, and practical usage with clear code examples.

C++11LambdaThread
0 likes · 27 min read
Unlock C++11: 10 Game‑Changing Features Every Developer Must Master
Deepin Linux
Deepin Linux
Jun 5, 2025 · Fundamentals

Mastering C++ Move Semantics: Rvalue References and std::move Explained

This article explains C++ move semantics, covering the concepts of lvalues and rvalues, the syntax and rules of rvalue references, how std::move converts lvalues to rvalues, and demonstrates practical applications such as custom class move constructors, STL container optimizations, and return value optimization.

C++move semanticsrvalue references
0 likes · 21 min read
Mastering C++ Move Semantics: Rvalue References and std::move Explained
Liangxu Linux
Liangxu Linux
Mar 5, 2025 · Fundamentals

What Hidden Functions Does C++ Auto‑Generate for Your Classes?

This article explains the seven default special member functions that C++ automatically provides for a class—including constructors, destructors, copy/move operations and address‑of operators—showing when they are sufficient, when they can cause problems such as shallow copies or double frees, and how to implement custom versions to ensure correct resource management.

C++Constructorcopy semantics
0 likes · 17 min read
What Hidden Functions Does C++ Auto‑Generate for Your Classes?
Deepin Linux
Deepin Linux
Nov 3, 2023 · Fundamentals

C++11 New Features and Their Practical Usage

This article provides a comprehensive overview of C++11 enhancements, including list initialization, type deduction, constexpr, move semantics, perfect forwarding, lambda expressions, smart pointers, and new casting rules, with detailed explanations and code examples illustrating their syntax, behavior, and practical applications.

C++11CastingLambda Expressions
0 likes · 61 min read
C++11 New Features and Their Practical Usage
Tencent Cloud Developer
Tencent Cloud Developer
Oct 26, 2023 · Fundamentals

C++ Value Categories: lvalue, prvalue, xvalue, and Their Role in Function Returns and Move Semantics

The article explains how C++ value categories—lvalue, prvalue, and xvalue—govern function return handling, parameter passing, and object lifetimes, detailing hidden out‑parameters, copy‑elision, const‑reference lifetime extension, rvalue references, and the role of std::move in enabling move semantics.

AssemblyC++lvalue
0 likes · 47 min read
C++ Value Categories: lvalue, prvalue, xvalue, and Their Role in Function Returns and Move Semantics
Tencent Cloud Developer
Tencent Cloud Developer
Aug 5, 2022 · Fundamentals

Understanding C++ Move Semantics and std::forward

The article explains C++11 move semantics, showing how std::move forces rvalue treatment and how std::forward preserves value categories for perfect forwarding, illustrating copy vs. move constructors, custom move implementations, and the performance benefits of eliminating unnecessary copies.

C++C++11move semantics
0 likes · 20 min read
Understanding C++ Move Semantics and std::forward
IT Services Circle
IT Services Circle
Feb 5, 2022 · Fundamentals

Understanding && in C++: Rvalue References, Forwarding References, and Their Use as Function Parameters

The article explains the different meanings of the && operator in C++—as a true rvalue reference in non‑template functions, as a forwarding (universal) reference in templates, and its behavior when binding to function return values—illustrated with code examples and practical guidelines.

C++Function Parametersforwarding reference
0 likes · 5 min read
Understanding && in C++: Rvalue References, Forwarding References, and Their Use as Function Parameters
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++C++11Resource Management
0 likes · 23 min read
Understanding Move Semantics in C++11