C++ Finally Made Logging Good - Modern Formatting and Printing in C++20 and C++23
The Cherno via YouTube
Learn AI, Data Science & Business — Earn Certificates That Get You Hired
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 about the revolutionary improvements to logging and output in modern C++ through this 14-minute tutorial that explores the evolution from traditional printf and iostream methods to the new standardized formatting and printing capabilities. Discover how std::format introduced in C++20 provides type-safe, efficient string formatting similar to Python's format strings, eliminating common pitfalls of printf while offering better performance than iostream operators. Explore the game-changing std::print and std::println functions added in C++23 that finally provide a clean, modern approach to console output without the verbosity of std::cout. Master techniques for printing custom types by implementing proper formatting support, and understand why these additions represent a revolutionary step forward for C++ development. Gain practical insights into how these new features can improve code readability, performance, and safety in your C++ projects.
Syllabus
0:00 - Hello World has changed!
5:22 - std::format introduced in C++20
9:06 - std::print and std::println introduced in C++23
10:49 - Printing custom types
12:21 - Revolutionary
Taught by
The Cherno