Update docs

This commit is contained in:
Victor Zverovich 2018-10-03 10:33:51 -07:00
parent c797708fcc
commit 0f98de3011
2 changed files with 8 additions and 10 deletions

View File

@ -38,18 +38,16 @@ arguments in the resulting string.
.. _format: .. _format:
.. doxygenfunction:: format(const String&, const Args&...) .. doxygenfunction:: format(const S&, const Args&...)
.. doxygenfunction:: vformat(const String&, basic_format_args<typename buffer_context<Char>::type>) .. doxygenfunction:: vformat(const S&, basic_format_args<typename buffer_context<Char>::type>)
.. _print: .. _print:
.. doxygenfunction:: print(string_view, const Args&...) .. doxygenfunction:: print(const S&, const Args&...)
.. doxygenfunction:: vprint(string_view, format_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:: vprint(std::FILE *, string_view, format_args)
.. doxygenfunction:: print(std::FILE *, wstring_view, const Args&...)
.. doxygenfunction:: vprint(std::FILE *, wstring_view, wformat_args) .. doxygenfunction:: vprint(std::FILE *, wstring_view, wformat_args)
Named arguments Named arguments
@ -156,7 +154,7 @@ output ``operator<<`` when one is defined for a user-defined type.
Output iterator support 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&...) .. doxygenfunction:: fmt::format_to_n(OutputIt, std::size_t, string_view, const Args&...)
.. doxygenstruct:: fmt::format_to_n_result .. doxygenstruct:: fmt::format_to_n_result
:members: :members:

View File

@ -1370,10 +1370,10 @@ inline typename std::enable_if<
internal::checked_args<S, Args...>(format_str, args...)); internal::checked_args<S, Args...>(format_str, args...));
} }
template <typename S> template <typename S, typename Char = FMT_CHAR(S)>
inline std::basic_string<FMT_CHAR(S)> vformat( inline std::basic_string<Char> vformat(
const S &format_str, 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); return internal::vformat(internal::to_string_view(format_str), args);
} }