All Text and Formatting Facilities

All Text and Formatting Facilities

A compact scan page for strings, string views, char conversion, formatting, printing, regex, streams, and locale-adjacent text facilities.

How to use this reference page

Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.

  • Scan the top of the page first to identify the primary types, functions, or algorithm families involved.
  • Use the nearby-page links when your question is really about a companion header, related algorithm family, or broader subsystem.
  • Validate tricky behavior with a small compileable example before relying on memory for details like invalidation, ordering, allocation, or lifetime rules.

All Text and Formatting Facilities

Owning and non-owning text types

Formatting and printing

Low-level conversions

Regex, streams, and locale support

Practical rules

Example in practice

#include <format>

int main() {
    auto line = std::format("answer = {}", 42);
    return static_cast<int>(line.size());
}