Skip to content

Glossary: C++ Basics

std::format

Also written: placeholder, format

A function from `<format>` that builds a string from a pattern. Each `{}` placeholder takes the next value, and codes after a colon set width, alignment, zero padding and decimals.

Where the book teaches it

Related terms

std::string