std::format and std::print
Python-style formatting (C++20) and printing (C++23).
Easy
std::print("{} = {:.2f} V\n", name, volts); — type-safe and fast.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.