File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 632
632
#define @\defnlibxname {cpp_lib_filesystem}@ 201703L // also in \libheader {filesystem}
633
633
#define @\defnlibxname {cpp_lib_flat_map}@ 202207L // also in \libheader {flat_map}
634
634
#define @\defnlibxname {cpp_lib_flat_set}@ 202207L // also in \libheader {flat_set}
635
- #define @\defnlibxname {cpp_lib_format}@ 202306L // also in \libheader {format}
635
+ #define @\defnlibxname {cpp_lib_format}@ 202311L // also in \libheader {format}
636
636
#define @\defnlibxname {cpp_lib_format_ranges}@ 202207L // also in \libheader {format}
637
637
#define @\defnlibxname {cpp_lib_formatters}@ 202302L // also in \libheader {stacktrace}, \libheader {thread}
638
638
#define @\defnlibxname {cpp_lib_forward_like}@ 202207L // freestanding, also in \libheader {utility}
Original file line number Diff line number Diff line change 15583
15583
template<class charT, class... Args>
15584
15584
struct basic_format_string;
15585
15585
15586
+ template<class charT> struct @\exposid{runtime-format-string}@ { // \expos
15587
+ private:
15588
+ basic_string_view<charT> @\exposid{str}@; // \expos
15589
+ public:
15590
+ @\exposid{runtime-format-string}@(basic_string_view<charT> s) noexcept : @\exposid{str}@(s) {}
15591
+ @\exposid{runtime-format-string}@(const @\exposid{runtime-format-string}@&) = delete;
15592
+ @\exposid{runtime-format-string}@& operator=(const @\exposid{runtime-format-string}@&) = delete;
15593
+ };
15594
+ @\exposid{runtime-format-string}@<char> runtime_format(string_view fmt) noexcept { return fmt; }
15595
+ @\exposid{runtime-format-string}@<wchar_t> runtime_format(wstring_view fmt) noexcept { return fmt; }
15596
+
15586
15597
template<class... Args>
15587
15598
using @\libglobal{format_string}@ = basic_format_string<char, type_identity_t<Args>...>;
15588
15599
template<class... Args>
16485
16496
16486
16497
public:
16487
16498
template<class T> consteval basic_format_string(const T& s);
16499
+ basic_format_string(@\exposid{runtime-format-string}@<charT> s) noexcept : str(s.@\exposid{str}@) {}
16488
16500
16489
16501
constexpr basic_string_view<charT> get() const noexcept { return @\exposid{str}@; }
16490
16502
};
You can’t perform that action at this time.
0 commit comments