Free courses from frontend to fullstack and AI
2,000+ Free Courses with Certificates: Coding, AI, SQL, and More
Overview
AI, Data Science & Cloud Certificates from Google, IBM & Meta — 40% Off
One plan covers every Professional Certificate on Coursera. 40% off Coursera Plus Annual.
Unlock All Certificates
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