CppCon 2021 has ended
Back To Schedule
Thursday, October 28 • 3:15pm - 4:15pm
Why does std::format do that?

Log in to save this to your schedule, view media, leave feedback and see who's attending!

Feedback form is now closed.
std::format is a very convenient and very fast text formatting interface added in C++20. This session looks at the internals of how std::format works, and why it works that way. We'll cover how and why argument types are erased (along with the basics of type erasure in general), how to customize format for your own types, precisely what happens when you do, and how format optimizes copying to its output without generating excessive amounts of code. No knowledge of std::format is required to understand this session.

While the primary goal of this session is to understand some std::format internals, many of the techniques described may help you make your own generic libraries smaller and faster.

ALL TALK SESSIONS CAN BE ACCESSED FROM THE MAIN LOBBY: https://cppcon.digital-medium.co.uk/

avatar for Charles Barto

Charles Barto

Software Engineer, Microsoft
Charlie works on the Visual C++ Standard Library. He and open source contributors implemented <format> for msvc, based on {fmt}.

Thursday October 28, 2021 3:15pm - 4:15pm MDT