Tag: modern C++
All the articles with the tag "modern C++".
-
C++ auto Keyword Explained: Type Deduction for Beginners
Learn how the C++ auto keyword works, when to use type deduction, and how auto makes code cleaner without sacrificing type safety. Beginner-friendly guide.
-
C++ const vs constexpr: What's the Difference?
Learn the difference between const and constexpr in C++. This guide explains compile-time vs runtime constants, when to use each, and how constexpr functions work.
-
C++ Design Patterns: Singleton, Factory & Observer
Learn the most important C++ design patterns with practical examples. Covers Singleton, Factory, and Observer patterns with modern C++ implementations.
-
C++ Smart Pointers: unique_ptr & shared_ptr Guide
Learn how C++ smart pointers work. Covers unique_ptr, shared_ptr, and weak_ptr with examples showing how they prevent memory leaks.