From c3ac504c10cc982944cf162c7a3fcae3790f6bab Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Fri, 14 Jan 2022 10:38:30 -0800 Subject: [PATCH 1/2] Update changelog to include notes on `contains()` --- doc/changes.qbk | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/changes.qbk b/doc/changes.qbk index ff453813..fc2dd55d 100644 --- a/doc/changes.qbk +++ b/doc/changes.qbk @@ -15,6 +15,7 @@ * Improved C++20 support: * All containers have been updated to support heterogeneous `count`, `equal_range` and `find`. + * All containers now implement the member function `contains` * Improved C++23 support: * All containers have been updated to support heterogeneous `erase` and `extract`. From 312d00cc33d76263e9af59e0197bfc992ea02514 Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Fri, 14 Jan 2022 10:42:26 -0800 Subject: [PATCH 2/2] Update reference docs to include `contains()` --- doc/ref.php | 33 +++++++++++++ doc/ref.xml | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 165 insertions(+) diff --git a/doc/ref.php b/doc/ref.php index f34ed038..9a569455 100644 --- a/doc/ref.php +++ b/doc/ref.php @@ -1406,6 +1406,39 @@ EOL; + + + + key_type const& + + bool + + + + + K const& + + bool + + + + A boolean indicating whether or not there is an element with key equal to key in the container + + + + + The template <typename K> overload only participates + in overload resolution if Hash::is_transparent and + Pred::is_transparent are valid member typedefs. The + library assumes that Hash is callable with both + K and Key and that Pred is + transparent. This enables heterogeneous lookup which avoids the cost of + instantiating an instance of the Key type. + + + diff --git a/doc/ref.xml b/doc/ref.xml index ebfb3240..2e49f4b4 100644 --- a/doc/ref.xml +++ b/doc/ref.xml @@ -1233,6 +1233,39 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + + + + key_type const& + + bool + + + + + K const& + + bool + + + + A boolean indicating whether or not there is an element with key equal to key in the container + + + + + The template <typename K> overload only participates + in overload resolution if Hash::is_transparent and + Pred::is_transparent are valid member typedefs. The + library assumes that Hash is callable with both + K and Key and that Pred is + transparent. This enables heterogeneous lookup which avoids the cost of + instantiating an instance of the Key type. + + + @@ -2772,6 +2805,39 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + + + + key_type const& + + bool + + + + + K const& + + bool + + + + A boolean indicating whether or not there is an element with key equal to key in the container + + + + + The template <typename K> overload only participates + in overload resolution if Hash::is_transparent and + Pred::is_transparent are valid member typedefs. The + library assumes that Hash is callable with both + K and Key and that Pred is + transparent. This enables heterogeneous lookup which avoids the cost of + instantiating an instance of the Key type. + + + @@ -4432,6 +4498,39 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + + + + key_type const& + + bool + + + + + K const& + + bool + + + + A boolean indicating whether or not there is an element with key equal to key in the container + + + + + The template <typename K> overload only participates + in overload resolution if Hash::is_transparent and + Pred::is_transparent are valid member typedefs. The + library assumes that Hash is callable with both + K and Key and that Pred is + transparent. This enables heterogeneous lookup which avoids the cost of + instantiating an instance of the Key type. + + + @@ -6018,6 +6117,39 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + + + + key_type const& + + bool + + + + + K const& + + bool + + + + A boolean indicating whether or not there is an element with key equal to key in the container + + + + + The template <typename K> overload only participates + in overload resolution if Hash::is_transparent and + Pred::is_transparent are valid member typedefs. The + library assumes that Hash is callable with both + K and Key and that Pred is + transparent. This enables heterogeneous lookup which avoids the cost of + instantiating an instance of the Key type. + + +