From ad23270ec71dbcd90bde5e2479f37844b1a8f7da Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 13 May 2018 09:11:29 -0700 Subject: [PATCH] Document to_wstring --- doc/api.rst | 2 ++ include/fmt/format.h | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/doc/api.rst b/doc/api.rst index 989adb92..b65a8fc6 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -153,6 +153,8 @@ Utilities .. doxygenfunction:: fmt::to_string(const T&) +.. doxygenfunction:: fmt::to_wstring(const T&) + .. doxygenclass:: fmt::basic_memory_buffer :protected-members: :members: diff --git a/include/fmt/format.h b/include/fmt/format.h index a513c4ab..07c644aa 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3390,6 +3390,11 @@ std::string to_string(const T &value) { return str; } +/** + \rst + Converts *value* to ``std::wstring`` using the default format for type *T*. + \endrst + */ template std::wstring to_wstring(const T &value) { std::wstring str;