Lines Matching +full:out +full:-
1 // -*- C++ -*-
2 //===----------------------------------------------------------------------===//
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
17 template<class Out, class charT> class basic_format_context;
34 basic_format_string(runtime-format-string<charT> s) noexcept : str(s.str) {} // since C++26
45 template<class charT> struct runtime-format-string { // since C++26, exposition-only
47 basic_string_view<charT> str; // exposition-only
50 runtime-format-string(basic_string_view<charT> s) noexcept : str(s) {}
52 runtime-format-string(const runtime-format-string&) = delete;
53 runtime-format-string& operator=(const runtime-format-string&) = delete;
56 runtime-format-string<char> runtime_format(string_view fmt) noexcept {
59 runtime-format-string<wchar_t> runtime_format(wstring_view fmt) noexcept {
65 string format(format-string<Args...> fmt, Args&&... args);
67 wstring format(wformat-string<Args...> fmt, Args&&... args);
69 string format(const locale& loc, format-string<Args...> fmt, Args&&... args);
71 wstring format(const locale& loc, wformat-string<Args...> fmt, Args&&... args);
78 template<class Out, class... Args>
79 Out format_to(Out out, format-string<Args...> fmt, Args&&... args);
80 template<class Out, class... Args>
81 Out format_to(Out out, wformat-string<Args...> fmt, Args&&... args);
82 template<class Out, class... Args>
83 Out format_to(Out out, const locale& loc, format-string<Args...> fmt, Args&&... args);
84 template<class Out, class... Args>
85 Out format_to(Out out, const locale& loc, wformat-string<Args...> fmt, Args&&... args);
87 template<class Out>
88 Out vformat_to(Out out, string_view fmt, format_args args);
89 template<class Out>
90 Out vformat_to(Out out, wstring_view fmt, wformat_args args);
91 template<class Out>
92 Out vformat_to(Out out, const locale& loc, string_view fmt,
94 template<class Out>
95 Out vformat_to(Out out, const locale& loc, wstring_view fmt,
98 template<class Out> struct format_to_n_result {
99 Out out;
100 iter_difference_t<Out> size;
102 template<class Out, class... Args>
103 format_to_n_result<Out> format_to_n(Out out, iter_difference_t<Out> n,
104 format-string<Args...> fmt, Args&&... args);
105 template<class Out, class... Args>
106 format_to_n_result<Out> format_to_n(Out out, iter_difference_t<Out> n,
107 wformat-string<Args...> fmt, Args&&... args);
108 template<class Out, class... Args>
109 format_to_n_result<Out> format_to_n(Out out, iter_difference_t<Out> n,
110 const locale& loc, format-string<Args...> fmt,
112 template<class Out, class... Args>
113 format_to_n_result<Out> format_to_n(Out out, iter_difference_t<Out> n,
114 const locale& loc, wformat-string<Args...> fmt,
118 size_t formatted_size(format-string<Args...> fmt, Args&&... args);
120 size_t formatted_size(wformat-string<Args...> fmt, Args&&... args);
122 size_t formatted_size(const locale& loc, format-string<Args...> fmt, Args&&... args);
124 size_t formatted_size(const locale& loc, wformat-string<Args...> fmt, Args&&... args);
157 // [format.range.fmtdef], class template range-default-formatter
159 struct range-default-formatter; // exposition only, since C++23
166 struct formatter<R, charT> : range-default-formatter<format_kind<R>, R, charT> { }; // since C++23
175 // [format.arg.store], class template format-arg-store
176 template<class Context, class... Args> struct format-arg-store; // exposition only
179 format-arg-store<Context, Args...>
182 format-arg-store<wformat_context, Args...>