Update docs
This commit is contained in:
parent
c797708fcc
commit
0f98de3011
12
doc/api.rst
12
doc/api.rst
@ -38,18 +38,16 @@ arguments in the resulting string.
|
||||
|
||||
.. _format:
|
||||
|
||||
.. doxygenfunction:: format(const String&, const Args&...)
|
||||
.. doxygenfunction:: vformat(const String&, basic_format_args<typename buffer_context<Char>::type>)
|
||||
.. doxygenfunction:: format(const S&, const Args&...)
|
||||
.. doxygenfunction:: vformat(const S&, basic_format_args<typename buffer_context<Char>::type>)
|
||||
|
||||
.. _print:
|
||||
|
||||
.. doxygenfunction:: print(string_view, const Args&...)
|
||||
.. doxygenfunction:: print(const S&, const Args&...)
|
||||
.. doxygenfunction:: vprint(string_view, format_args)
|
||||
|
||||
.. doxygenfunction:: print(std::FILE *, string_view, const Args&...)
|
||||
.. doxygenfunction:: print(std::FILE *, const S&, const Args&...)
|
||||
.. doxygenfunction:: vprint(std::FILE *, string_view, format_args)
|
||||
|
||||
.. doxygenfunction:: print(std::FILE *, wstring_view, const Args&...)
|
||||
.. doxygenfunction:: vprint(std::FILE *, wstring_view, wformat_args)
|
||||
|
||||
Named arguments
|
||||
@ -156,7 +154,7 @@ output ``operator<<`` when one is defined for a user-defined type.
|
||||
Output iterator support
|
||||
-----------------------
|
||||
|
||||
.. doxygenfunction:: fmt::format_to(OutputIt, string_view, const Args&...)
|
||||
.. doxygenfunction:: fmt::format_to(OutputIt, const String&, const Args&...)
|
||||
.. doxygenfunction:: fmt::format_to_n(OutputIt, std::size_t, string_view, const Args&...)
|
||||
.. doxygenstruct:: fmt::format_to_n_result
|
||||
:members:
|
||||
|
@ -1370,10 +1370,10 @@ inline typename std::enable_if<
|
||||
internal::checked_args<S, Args...>(format_str, args...));
|
||||
}
|
||||
|
||||
template <typename S>
|
||||
inline std::basic_string<FMT_CHAR(S)> vformat(
|
||||
template <typename S, typename Char = FMT_CHAR(S)>
|
||||
inline std::basic_string<Char> vformat(
|
||||
const S &format_str,
|
||||
basic_format_args<typename buffer_context<FMT_CHAR(S)>::type> args) {
|
||||
basic_format_args<typename buffer_context<Char>::type> args) {
|
||||
return internal::vformat(internal::to_string_view(format_str), args);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user