This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] No allocation for empty unordered containers
- From: François Dumont <frs dot dumont at gmail dot com>
- To: Jonathan Wakely <jwakely at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 08 Sep 2014 20:22:55 +0200
- Subject: Re: [patch] No allocation for empty unordered containers
- Authentication-results: sourceware.org; auth=none
- References: <20140804115539 dot GP2361 at redhat dot com> <53E13810 dot 8030107 at gmail dot com> <20140805201026 dot GH6927 at redhat dot com> <53E13D4B dot 5080909 at oracle dot com> <53EA697F dot 4030407 at gmail dot com> <alpine dot DEB dot 2 dot 11 dot 1408122137280 dot 1593 at laptop-mg dot saclay dot inria dot fr> <53EA70B6 dot 20503 at gmail dot com> <20140813095026 dot GU6927 at redhat dot com> <53ED0C8D dot 5020809 at gmail dot com> <540211EF dot 2020206 at gmail dot com> <20140902100523 dot GT22778 at redhat dot com>
On 02/09/2014 12:05, Jonathan Wakely wrote:
It's OK to document it with a Doxygen comment, although I think it
would be better in doc/xml/manual/containers.xml.
Hi
Here is the doc patch, I eventually found where you had documented it.
François
Index: doc/xml/manual/status_cxx2011.xml
===================================================================
--- doc/xml/manual/status_cxx2011.xml (revision 215005)
+++ doc/xml/manual/status_cxx2011.xml (working copy)
@@ -2625,8 +2625,8 @@
<emphasis>23.5.5.2 [unord.multimap.cnstr]</emphasis>,
<emphasis>23.5.6.2 [unord.set.cnstr]</emphasis>,
<emphasis>23.5.7.2 [unord.multiset.cnstr]</emphasis>
- The default bucket count is 10 for the default constructors
- and 0 for the range constructors and initializer-list constructors.
+ The default minimal bucket count is always 0 to avoid allocation at
+ instantiation as much as possible.
</para>
<para>