>From f4a23b264e32e8c3101ffe39ad38c3114acd1a24 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 2 Feb 2020 19:25:05 +0100 Subject: [PATCH 11/11] Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++. * doc/containers.texi: Document these new modules. --- ChangeLog | 5 +++++ doc/containers.texi | 29 +++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/ChangeLog b/ChangeLog index 05f0dcc..2a86791 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 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. * tests/test-omap-c++.cc: New file. * modules/omap-c++-tests: New file. diff --git a/doc/containers.texi b/doc/containers.texi index 739ed81..b3f154d 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 -- 2.7.4