From c9f790b0615adb42ffbff4b9d760cb627873639e Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 14 Sep 2022 10:58:52 -0700 Subject: [PATCH] Update docs --- doc/api.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api.rst b/doc/api.rst index 29988606..98f4d8e6 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -404,6 +404,10 @@ locale:: std::locale::global(std::locale("en_US.UTF-8")); auto s = fmt::format("{:L}", 1000000); // s == "1,000,000" +``fmt/format.h`` provides the following overloads of formatting functions +that take ``std::locale`` as a parameter. The locale is passed as a template +parameter to avoid the expensive ```` include. + .. doxygenfunction:: format(const Locale& loc, format_string fmt, T&&... args) -> std::string .. doxygenfunction:: format_to(OutputIt out, const Locale& loc, format_string fmt, T&&... args) -> OutputIt .. doxygenfunction:: formatted_size(const Locale& loc, format_string fmt, T&&... args) -> size_t