Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/iostreams.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7801,7 +7801,7 @@
\effects
Equivalent to:
\begin{codeblock}
print(stream, runtime_format(string(fmt.get()) + '\n'), std::forward<Args>(args)...);
print(stream, dynamic_format(string(fmt.get()) + '\n'), std::forward<Args>(args)...);
\end{codeblock}
\end{itemdescr}

Expand Down
2 changes: 1 addition & 1 deletion source/support.tex
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@
#define @\defnlibxname{cpp_lib_filesystem}@ 201703L // also in \libheader{filesystem}
#define @\defnlibxname{cpp_lib_flat_map}@ 202511L // also in \libheader{flat_map}
#define @\defnlibxname{cpp_lib_flat_set}@ 202511L // also in \libheader{flat_set}
#define @\defnlibxname{cpp_lib_format}@ 202311L // also in \libheader{format}
#define @\defnlibxname{cpp_lib_format}@ 202603L // also in \libheader{format}
#define @\defnlibxname{cpp_lib_format_path}@ 202506L // also in \libheader{filesystem}
#define @\defnlibxname{cpp_lib_format_ranges}@ 202207L // also in \libheader{format}
#define @\defnlibxname{cpp_lib_format_uchar}@ 202311L // also in \libheader{format}
Expand Down
18 changes: 9 additions & 9 deletions source/text.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5751,18 +5751,18 @@
template<class charT, class... Args>
struct basic_format_string;

template<class charT> struct @\exposid{runtime-format-string}@ { // \expos
template<class charT> struct @\exposid{dynamic-format-string}@ { // \expos
private:
basic_string_view<charT> @\exposid{str}@; // \expos
public:
constexpr @\exposid{runtime-format-string}@(basic_string_view<charT> s) noexcept : @\exposid{str}@(s) {}
@\exposid{runtime-format-string}@(const @\exposid{runtime-format-string}@&) = delete;
@\exposid{runtime-format-string}@& operator=(const @\exposid{runtime-format-string}@&) = delete;
constexpr @\exposid{dynamic-format-string}@(basic_string_view<charT> s) noexcept : @\exposid{str}@(s) {}
@\exposid{dynamic-format-string}@(const @\exposid{dynamic-format-string}@&) = delete;
@\exposid{dynamic-format-string}@& operator=(const @\exposid{dynamic-format-string}@&) = delete;
};
constexpr @\exposid{runtime-format-string}@<char>
runtime_format(string_view fmt) noexcept { return fmt; }
constexpr @\exposid{runtime-format-string}@<wchar_t>
runtime_format(wstring_view fmt) noexcept { return fmt; }
constexpr @\exposid{dynamic-format-string}@<char>
dynamic_format(string_view fmt) noexcept { return fmt; }
constexpr @\exposid{dynamic-format-string}@<wchar_t>
dynamic_format(wstring_view fmt) noexcept { return fmt; }

template<class... Args>
using @\libglobal{format_string}@ = basic_format_string<char, type_identity_t<Args>...>;
Expand Down Expand Up @@ -6678,7 +6678,7 @@

public:
template<class T> consteval basic_format_string(const T& s);
constexpr basic_format_string(@\exposid{runtime-format-string}@<charT> s) noexcept : str(s.@\exposid{str}@) {}
constexpr basic_format_string(@\exposid{dynamic-format-string}@<charT> s) noexcept : str(s.@\exposid{str}@) {}

constexpr basic_string_view<charT> get() const noexcept { return @\exposid{str}@; }
};
Expand Down
Loading