Tagged articles
14 articles
Page 1 of 1
php Courses
php Courses
Sep 5, 2025 · Fundamentals

Mastering C++ Lambdas: From Basics to Advanced Techniques

This article explains what C++ lambda expressions are, their syntax, capture mechanisms, mutable keyword, return type deduction, generic and template lambdas, and demonstrates practical uses with STL algorithms, event handling, and asynchronous programming, while offering best‑practice guidelines.

Anonymous FunctionsCC++11
0 likes · 12 min read
Mastering C++ Lambdas: From Basics to Advanced Techniques
php Courses
php Courses
Sep 4, 2025 · Fundamentals

Master C++11 Range-Based For Loops: Syntax, Benefits, and Best Practices

This article explains C++11's range‑based for loop, covering its concise syntax, advantages over traditional loops, how to modify elements with references, supported container types, the compiler's transformation, and practical best‑practice recommendations for safe and efficient iteration.

CC++11best practices
0 likes · 7 min read
Master C++11 Range-Based For Loops: Syntax, Benefits, and Best Practices
php Courses
php Courses
Sep 3, 2025 · Fundamentals

Mastering C++11’s auto: Rules, Benefits, and Common Pitfalls

This article explores C++11’s auto keyword, detailing its type deduction rules, advantages, typical use cases such as iterator and lambda handling, and highlights common pitfalls and best‑practice guidelines to help developers write clearer, safer, and more efficient code.

CC++11auto
0 likes · 9 min read
Mastering C++11’s auto: Rules, Benefits, and Common Pitfalls
Deepin Linux
Deepin Linux
Aug 17, 2025 · Fundamentals

Mastering C++ Singleton: 5 Implementations, Pitfalls & Performance Tips

This article explains why the singleton pattern is essential for global resources in C++, walks through five concrete implementations—from basic lazy and eager versions to thread‑safe double‑checked locking and C++11 static locals—analyzes their performance and resource trade‑offs, and provides a complete printer‑singleton case study with build and run instructions.

CC++11Design Patterns
0 likes · 26 min read
Mastering C++ Singleton: 5 Implementations, Pitfalls & Performance Tips
Liangxu Linux
Liangxu Linux
Aug 5, 2025 · Fundamentals

Master C++11 Condition Variables: From Basics to Thread‑Pool Mastery

This article explains what C++11 condition variables are, why they are essential for efficient multithreading, shows their basic usage with std::condition_variable and std::mutex, walks through a producer‑consumer example, demonstrates a thread‑pool implementation, and lists crucial best‑practice tips.

C++C++11concurrency
0 likes · 15 min read
Master C++11 Condition Variables: From Basics to Thread‑Pool Mastery
php Courses
php Courses
Jul 17, 2025 · Fundamentals

Master C++11 Range-Based for Loops: Simplify Your Iterations

This article explains C++11’s range-based for loop, covering its syntax, practical examples for arrays, vectors, maps, and how to use auto type deduction and references to modify elements, while highlighting its advantages over traditional loops and outlining suitable use cases and pitfalls.

CC++11STL
0 likes · 6 min read
Master C++11 Range-Based for Loops: Simplify Your Iterations
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
Liangxu Linux
Liangxu Linux
Apr 20, 2025 · Fundamentals

Master the Latest C++ Features: From Auto to Coroutines (C++11‑C++20)

This article provides a concise overview of the most commonly used new features introduced in C++11 through C++20, including auto type deduction, range‑based for loops, smart pointers, lambda expressions, move semantics, structured bindings, concepts, ranges, coroutines, the spaceship operator, and more, with clear code examples.

C++C++11C++14
0 likes · 6 min read
Master the Latest C++ Features: From Auto to Coroutines (C++11‑C++20)
Deepin Linux
Deepin Linux
Sep 4, 2024 · Fundamentals

Comprehensive Overview of C/C++ Language Features, Standard Library, and Object‑Oriented Concepts

This article provides an extensive guide to C/C++ fundamentals, covering static and const qualifiers, references versus pointers, memory‑management techniques, STL container implementations, iterator behavior, object‑oriented principles, virtual functions, smart pointers, and modern C++11 features for both beginner and experienced developers.

C++C++11STL
0 likes · 44 min read
Comprehensive Overview of C/C++ Language Features, Standard Library, and Object‑Oriented Concepts
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
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
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