std::formatter<range>

Header: <format>

The template specialization of std::formatter for the range types allows users to convert a range to its textual representation as a collection of elements or a string using formatting functions.

# Declarations

template< ranges::input_range R, class CharT >
requires (std::format_kind<R> != std::range_format::disabled) &&
std::formattable<ranges::range_reference_t<R>, CharT>
struct formatter<R, CharT>;

(since C++23)

Helper templates
template< std::range_format K, ranges::input_range R, class CharT >
struct /*range-default-formatter*/;

(exposition only*)

# Example

This section is incompleteReason: example

# See also