Book Image

Getting Started with C++17 Programming [Video]

By : Jeganathan Swaminathan
Book Image

Getting Started with C++17 Programming [Video]

By: Jeganathan Swaminathan

Overview of this book

<p><span id="description" class="sugar_field">C++ has come a long way and has now been adopted in several contexts. Its key strengths are its software infrastructure and resource-constrained applications. The C++ 17 release will change the way developers write code, and this course will help you master your developing skills with C++. </span></p> <p><span id="description" class="sugar_field">With real-world, practical examples explaining each concept, the course begins by introducing you to the latest features in C++17. It encourages clean code practices in C++ in general. </span></p> <p><span id="description" class="sugar_field">You'll get tips on avoiding memory leaks using smart-pointers. Next, you'll see how multi-threaded programming can help you achieve concurrency in your applications. Moving on, you'll get an in-depth understanding of the C++ Standard Template Library.</span></p> <p><span id="description" class="sugar_field">Finally, we'll round up with debugging techniques and best practices. By the end of the course, you'll have an in-depth understanding of the language and its various facets.</span></p> <h2><span class="sugar_field">Style and Approach</span></h2> <p><span class="sugar_field"><span id="trade_selling_points_c" class="sugar_field">This straightforward guide will help you level up your skills in C++ programming, whether for enterprise software or for low-latency applications such as games. Filled with real-world, practical examples, this video course will take you gradually up the steep learning curve that is C++. </span></span></p>
Table of Contents (5 chapters)
Chapter 5
Smart Pointers
Content Locked
Section 4
weak_ptr
So far, we have discussed the positive side of shared_ptr with examples. However, shared_ptr fails to clean up the memory when there is a circular dependency in the application design. Either the application design must be refactored to avoid cyclic dependency, or we can make use of weak_ptr to resolve the cyclic dependency issue. - Break the circular dependency