|
5751 | 5751 | template<class charT, class... Args> |
5752 | 5752 | struct basic_format_string; |
5753 | 5753 |
|
5754 | | - template<class charT> struct @\exposid{runtime-format-string}@ { // \expos |
| 5754 | + template<class charT> struct @\exposid{dynamic-format-string}@ { // \expos |
5755 | 5755 | private: |
5756 | 5756 | basic_string_view<charT> @\exposid{str}@; // \expos |
5757 | 5757 | public: |
5758 | | - constexpr @\exposid{runtime-format-string}@(basic_string_view<charT> s) noexcept : @\exposid{str}@(s) {} |
5759 | | - @\exposid{runtime-format-string}@(const @\exposid{runtime-format-string}@&) = delete; |
5760 | | - @\exposid{runtime-format-string}@& operator=(const @\exposid{runtime-format-string}@&) = delete; |
| 5758 | + constexpr @\exposid{dynamic-format-string}@(basic_string_view<charT> s) noexcept : @\exposid{str}@(s) {} |
| 5759 | + @\exposid{dynamic-format-string}@(const @\exposid{dynamic-format-string}@&) = delete; |
| 5760 | + @\exposid{dynamic-format-string}@& operator=(const @\exposid{dynamic-format-string}@&) = delete; |
5761 | 5761 | }; |
5762 | | - constexpr @\exposid{runtime-format-string}@<char> |
5763 | | - runtime_format(string_view fmt) noexcept { return fmt; } |
5764 | | - constexpr @\exposid{runtime-format-string}@<wchar_t> |
5765 | | - runtime_format(wstring_view fmt) noexcept { return fmt; } |
| 5762 | + constexpr @\exposid{dynamic-format-string}@<char> |
| 5763 | + dynamic_format(string_view fmt) noexcept { return fmt; } |
| 5764 | + constexpr @\exposid{dynamic-format-string}@<wchar_t> |
| 5765 | + dynamic_format(wstring_view fmt) noexcept { return fmt; } |
5766 | 5766 |
|
5767 | 5767 | template<class... Args> |
5768 | 5768 | using @\libglobal{format_string}@ = basic_format_string<char, type_identity_t<Args>...>; |
|
6692 | 6692 |
|
6693 | 6693 | public: |
6694 | 6694 | template<class T> consteval basic_format_string(const T& s); |
6695 | | - constexpr basic_format_string(@\exposid{runtime-format-string}@<charT> s) noexcept : str(s.@\exposid{str}@) {} |
| 6695 | + constexpr basic_format_string(@\exposid{dynamic-format-string}@<charT> s) noexcept : str(s.@\exposid{str}@) {} |
6696 | 6696 |
|
6697 | 6697 | constexpr basic_string_view<charT> get() const noexcept { return @\exposid{str}@; } |
6698 | 6698 | }; |
|
0 commit comments