mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-05 20:27:03 +00:00
Update signatures in docs and ostream.h
This commit is contained in:
parent
db745986f2
commit
44abd1f483
@ -309,7 +309,7 @@ The following user-defined literals are defined in ``fmt/format.h``.
|
||||
|
||||
.. doxygenfunction:: operator""_format(const char *s, size_t n) -> detail::udl_formatter<char>
|
||||
|
||||
.. doxygenfunction:: operator""_a(const char *s, size_t) -> detail::udl_arg<char>
|
||||
.. doxygenfunction:: operator""_a() -> detail::udl_arg<char>
|
||||
|
||||
Utilities
|
||||
---------
|
||||
@ -516,7 +516,7 @@ In order to make a type formattable via ``std::ostream`` you should provide a
|
||||
std::string s = fmt::format("The date is {}", date(2012, 12, 9));
|
||||
// s == "The date is 2012-12-9"
|
||||
|
||||
.. doxygenfunction:: print(std::basic_ostream<Char> &os, const S &format_str, Args&&... args)
|
||||
.. doxygenfunction:: print(std::basic_ostream<Char> &os, format_string<T...> fmt, T&&... args)
|
||||
|
||||
.. _printf-api:
|
||||
|
||||
|
@ -133,8 +133,8 @@ void vprint(std::basic_ostream<Char>& os,
|
||||
\endrst
|
||||
*/
|
||||
FMT_MODULE_EXPORT
|
||||
template <typename... Args>
|
||||
void print(std::ostream& os, format_string<Args...> fmt, Args&&... args) {
|
||||
template <typename... T>
|
||||
void print(std::ostream& os, format_string<T...> fmt, T&&... args) {
|
||||
vprint(os, fmt, fmt::make_format_args(args...));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user