From f0ae725721d766842dde88ed70ac8bea6085b36f Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 9 May 2018 06:43:54 -0700 Subject: [PATCH] Clarify the use of allocators --- doc/api.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/api.rst b/doc/api.rst index 1e1237f4..9372743f 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -200,6 +200,11 @@ 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. + Custom formatting of built-in types -----------------------------------