C++ Finally Made Logging Good - Modern Formatting and Printing in C++20 and C++23
The Cherno via YouTube
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
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