From 46a63b7087847cf806598cf057ce2089fad7a406 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 23 Jul 2020 07:12:19 -0700 Subject: [PATCH] Update docs --- doc/api.rst | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/doc/api.rst b/doc/api.rst index d2f7ab53..45f764ac 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -334,8 +334,6 @@ the value of ``errno`` being preserved by library functions. .. doxygenclass:: fmt::windows_error :members: -.. _formatstrings: - Custom Allocators ----------------- @@ -366,10 +364,10 @@ allocator:: return vformat(alloc, format_str, fmt::make_format_args(args...)); } -The allocator will be used for the output container only. If you are using named -arguments, the container that stores pointers to them will be allocated using -the default allocator. Also floating-point formatting falls back on ``sprintf`` -which may do allocations. +The allocator will be used for the output container only. Formatting functions +normally don't do any allocations for built-in and string types except for +non-default floating-point formatting that occasionally falls back on +``sprintf``. .. _ranges-api: