std::range_formatter

Header: <format>

std::range_formatter is a helper class template for implementing range std::formatter specializations.

# Declarations

template< class T, class CharT = char >
requires std::same_as<std::remove_cvref_t<T>, T> && std::formattable<T, CharT>
class range_formatter;

(since C++23)

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 3892C++23the formatting of nested ranges was incorrectcorrected

# See also