Update docs

This commit is contained in:
Victor Zverovich 2022-09-14 10:58:52 -07:00
parent 6b8144a5ac
commit c9f790b061

View File

@ -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 ``<locale>`` include.
.. doxygenfunction:: format(const Locale& loc, format_string<T...> fmt, T&&... args) -> std::string
.. doxygenfunction:: format_to(OutputIt out, const Locale& loc, format_string<T...> fmt, T&&... args) -> OutputIt
.. doxygenfunction:: formatted_size(const Locale& loc, format_string<T...> fmt, T&&... args) -> size_t