|
13483 | 13483 | requires @\libconcept{same_as}@<remove_cvref_t<T>, T> && @\libconcept{formattable}@<T, charT>
|
13484 | 13484 | class range_formatter;
|
13485 | 13485 |
|
13486 |
| - template<ranges::input_range R, class charT> |
| 13486 | + template<ranges::@\libconcept{input_range}@ R, class charT> |
13487 | 13487 | requires (!@\libconcept{same_as}@<remove_cvref_t<ranges::range_reference_t<R>>, R>) &&
|
13488 | 13488 | @\libconcept{formattable}@<ranges::range_reference_t<R>, charT>
|
13489 | 13489 | struct formatter<R, charT>;
|
|
15264 | 15264 | \end{codeblock}
|
15265 | 15265 | \end{example}
|
15266 | 15266 |
|
15267 |
| -\rSec2[format.range.formatter]{Range formatter} |
| 15267 | +\rSec2[format.range.formatter]{Class template \tcode{range_formatter}} |
15268 | 15268 |
|
15269 | 15269 | \pnum
|
15270 | 15270 | The class template \tcode{range_formatter} is a utility
|
|
15318 | 15318 | The \tcode{n} option causes the range to be formatted
|
15319 | 15319 | without the opening and closing brackets.
|
15320 | 15320 | \begin{note}
|
15321 |
| -This is equivalent to invoking \tcode{set_brackets(\{\}, \{\}}). |
| 15321 | +This is equivalent to invoking \tcode{set_brackets(\{\}, \{\})}. |
15322 | 15322 | \end{note}
|
15323 | 15323 |
|
15324 | 15324 | \pnum
|
|
15386 | 15386 | constexpr typename ParseContext::iterator
|
15387 | 15387 | parse(ParseContext& ctx);
|
15388 | 15388 |
|
15389 |
| - template<ranges::input_range R, class FormatContext> |
| 15389 | + template<ranges::@\libconcept{input_range}@ R, class FormatContext> |
15390 | 15390 | requires @\libconcept{formattable}@<ranges::range_reference_t<R>, charT> &&
|
15391 |
| - @\libconcept{same_as}@<remove_cvref_t<ranges::range_reference_t<R>>, T> |
| 15391 | + @\libconcept{same_as}@<remove_cvref_t<ranges::range_reference_t<R>>, T> |
15392 | 15392 | typename FormatContext::iterator
|
15393 | 15393 | format(R&& r, FormatContext& ctx) const;
|
15394 | 15394 | };
|
|
15455 | 15455 |
|
15456 | 15456 | \indexlibrarymember{format}{range_formatter}%
|
15457 | 15457 | \begin{itemdecl}
|
15458 |
| -template<ranges::input_range R, class FormatContext> |
| 15458 | +template<ranges::@\libconcept{input_range}@ R, class FormatContext> |
15459 | 15459 | requires @\libconcept{formattable}@<ranges::range_reference_t<R>, charT> &&
|
15460 | 15460 | @\libconcept{same_as}@<remove_cvref_t<ranges::range_reference_t<R>>, T>
|
15461 | 15461 | typename FormatContext::iterator
|
|
15502 | 15502 | \indexlibraryglobal{formatter}%
|
15503 | 15503 | \begin{codeblock}
|
15504 | 15504 | namespace std {
|
15505 |
| - template<ranges::input_range R, class charT> |
| 15505 | + template<ranges::@\libconcept{input_range}@ R, class charT> |
15506 | 15506 | requires (!@\libconcept{same_as}@<remove_cvref_t<ranges::range_reference_t<R>>, R>) &&
|
15507 | 15507 | @\libconcept{formattable}@<ranges::range_reference_t<R>, charT>
|
15508 | 15508 | struct formatter<R, charT> {
|
|
16012 | 16012 | \indexlibraryglobal{formatter}%
|
16013 | 16013 | \begin{codeblock}
|
16014 | 16014 | namespace std {
|
16015 |
| -template<class charT, @\libconcept{formattable}@<charT>... Ts> |
| 16015 | + template<class charT, @\libconcept{formattable}@<charT>... Ts> |
16016 | 16016 | struct formatter<@\placeholder{pair-or-tuple}@<Ts...>, charT> {
|
16017 | 16017 | private:
|
16018 | 16018 | tuple<formatter<remove_cvref_t<Ts>, charT>...> @\exposid{underlying_}@; // \expos
|
|
16023 | 16023 | public:
|
16024 | 16024 | constexpr void set_separator(basic_string_view<charT> sep);
|
16025 | 16025 | constexpr void set_brackets(basic_string_view<charT> opening,
|
16026 |
| - basic_string_view<charT> closing); |
| 16026 | + basic_string_view<charT> closing); |
16027 | 16027 |
|
16028 | 16028 | template<class ParseContext>
|
16029 | 16029 | constexpr typename ParseContext::iterator
|
|
16187 | 16187 | the result of writing \tcode{get<I>(elems)}
|
16188 | 16188 | via \tcode{get<I>(\exposid{underlying_})}, and
|
16189 | 16189 | \end{itemize}
|
| 16190 | +\item |
16190 | 16191 | \exposid{closing-bracket_}.
|
16191 | 16192 | \end{itemize}
|
16192 | 16193 |
|
|
0 commit comments