Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Streamlining C++ Code - Avoiding Unnecessary C++ Object Creation

CppNow via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to optimize C++ performance by eliminating unnecessary temporary object creation in this conference talk from C++Now 2025. Discover practical strategies for reducing resource usage and improving code efficiency through real-world examples and best practices identified during professional code reviews. Explore techniques for optimizing commonly used types including std::string and std::vector, then extend to other STL types such as std::pair, std::tuple, std::optional, std::expected, std::variant, std::initializer_list, and various sequence and associative containers. Master the use of transparent comparators to avoid costly operations and learn to move constant objects with global lifetimes to compile-time data structures. Gain actionable insights through comprehensive code demonstrations that show these optimization principles in practice, equipping you with immediately applicable techniques to enhance the efficiency of your C++ codebases and reduce unnecessary resource consumption in production environments.

Syllabus

Streamlining C++ Code - Avoiding Unnecessary C++ Object Creation - C++Now 2025

Taught by

CppNow

Reviews

Start your review of Streamlining C++ Code - Avoiding Unnecessary C++ Object Creation

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.