From: Bruno Haible Date: Sun, 2 Feb 2020 18:25:05 +0000 (+0100) Subject: Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++. X-Git-Tag: v1.0~4270 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=f4a23b264e32e8c3101ffe39ad38c3114acd1a24;p=gnulib.git Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++. * doc/containers.texi: Document these new modules. --- diff --git a/ChangeLog b/ChangeLog index 05f0dccee8..2a86791a86 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-02-02 Bruno Haible + + Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++. + * doc/containers.texi: Document these new modules. + 2020-02-02 Bruno Haible omap-c++: Add tests. diff --git a/doc/containers.texi b/doc/containers.texi index 739ed811b7..b3f154db45 100644 --- a/doc/containers.texi +++ b/doc/containers.texi @@ -498,6 +498,35 @@ for the ``ordered map'' data type are: @tab @math{O(@log n)} @end multitable +For C++, Gnulib provides a C++ template class for each of these container data types. + +@multitable @columnfractions .30 .20 .25 .25 +@headitem Data type +@tab C++ class +@tab Module +@tab Include file +@item Sequential list +@tab @code{gl_List} +@tab @code{list-c++} +@tab @code{"gl_list.hh"} +@item Set +@tab @code{gl_Set} +@tab @code{set-c++} +@tab @code{"gl_set.hh"} +@item Ordered set +@tab @code{gl_OSet} +@tab @code{oset-c++} +@tab @code{"gl_oset.hh"} +@item Map +@tab @code{gl_Map} +@tab @code{map-c++} +@tab @code{"gl_map.hh"} +@item Ordered map +@tab @code{gl_OMap} +@tab @code{omap-c++} +@tab @code{"gl_omap.hh"} +@end multitable + @ifnottex @unmacro log @end ifnottex