Tag

C++11

0 views collected around this technical thread.

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++11Memory Management
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++11Lambda Expressionscasting
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++11Performance
0 likes · 23 min read
Understanding Move Semantics in C++11