1010
1111// <format>
1212
13- // template<class charT> struct dynamic -format-string { // exposition-only
13+ // template<class charT> struct runtime -format-string { // exposition-only
1414// private:
1515// basic_string_view<charT> str; // exposition-only
1616//
1717// public:
18- // dynamic -format-string(basic_string_view<charT> s) noexcept : str(s) {}
18+ // runtime -format-string(basic_string_view<charT> s) noexcept : str(s) {}
1919//
20- // dynamic -format-string(const dynamic -format-string&) = delete;
21- // dynamic -format-string& operator=(const dynamic -format-string&) = delete;
20+ // runtime -format-string(const runtime -format-string&) = delete;
21+ // runtime -format-string& operator=(const runtime -format-string&) = delete;
2222// };
2323//
24- // dynamic -format-string<char> dynamic_format (string_view fmt) noexcept;
25- // dynamic -format-string<wchar_t> dynamic_format (wstring_view fmt) noexcept;
24+ // runtime -format-string<char> runtime_format (string_view fmt) noexcept;
25+ // runtime -format-string<wchar_t> runtime_format (wstring_view fmt) noexcept;
2626//
2727// Additional testing is done in
28- // - libcxx/test/std/utilities/format/format.functions/format.dynamic_format .pass.cpp
29- // - libcxx/test/std/utilities/format/format.functions/format.locale.dynamic_format .pass.cpp
28+ // - libcxx/test/std/utilities/format/format.functions/format.runtime_format .pass.cpp
29+ // - libcxx/test/std/utilities/format/format.functions/format.locale.runtime_format .pass.cpp
3030
3131#include < format>
3232
@@ -50,19 +50,19 @@ static void test_properties() {
5050}
5151
5252int main (int , char **) {
53- static_assert (noexcept (std::dynamic_format (std::string_view{})));
54- auto format_string = std::dynamic_format (std::string_view{});
53+ static_assert (noexcept (std::runtime_format (std::string_view{})));
54+ auto format_string = std::runtime_format (std::string_view{});
5555
5656 using FormatString = decltype (format_string);
57- LIBCPP_ASSERT ((std::same_as<FormatString, std::__dynamic_format_string <char >>));
57+ LIBCPP_ASSERT ((std::same_as<FormatString, std::__runtime_format_string <char >>));
5858 test_properties<FormatString, char >();
5959
6060#ifndef TEST_HAS_NO_WIDE_CHARACTERS
61- static_assert (noexcept (std::dynamic_format (std::wstring_view{})));
62- auto wformat_string = std::dynamic_format (std::wstring_view{});
61+ static_assert (noexcept (std::runtime_format (std::wstring_view{})));
62+ auto wformat_string = std::runtime_format (std::wstring_view{});
6363
6464 using WFormatString = decltype (wformat_string);
65- LIBCPP_ASSERT ((std::same_as<WFormatString, std::__dynamic_format_string <wchar_t >>));
65+ LIBCPP_ASSERT ((std::same_as<WFormatString, std::__runtime_format_string <wchar_t >>));
6666 test_properties<WFormatString, wchar_t >();
6767#endif // TEST_HAS_NO_WIDE_CHARACTERS
6868
0 commit comments