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

YouTube

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

Reviews

Start your review of C++ Finally Made Logging Good - Modern Formatting and Printing in C++20 and C++23

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.