summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/abseil-cpp/absl/algorithm
diff options
context:
space:
mode:
authorthegeorg <[email protected]>2023-08-20 12:48:30 +0300
committerthegeorg <[email protected]>2023-08-20 14:09:13 +0300
commit05e8229556946514f3e7a20ba6ad49d61aeb05aa (patch)
tree7f0e99a0fce404f2ca53937aa3af1cfedaa91c15 /contrib/restricted/abseil-cpp/absl/algorithm
parent5017c0605609840684cdc5e1bcbc83000f24a08c (diff)
Update contrib/restricted/abseil-cpp to 20230802.0
Diffstat (limited to 'contrib/restricted/abseil-cpp/absl/algorithm')
-rw-r--r--contrib/restricted/abseil-cpp/absl/algorithm/container.h5
-rw-r--r--contrib/restricted/abseil-cpp/absl/algorithm/ya.make4
2 files changed, 5 insertions, 4 deletions
diff --git a/contrib/restricted/abseil-cpp/absl/algorithm/container.h b/contrib/restricted/abseil-cpp/absl/algorithm/container.h
index c7782d4f038..679e02676c6 100644
--- a/contrib/restricted/abseil-cpp/absl/algorithm/container.h
+++ b/contrib/restricted/abseil-cpp/absl/algorithm/container.h
@@ -1131,7 +1131,7 @@ c_equal_range(Sequence& sequence, const T& value, LessThan&& comp) {
// to test if any element in the sorted container contains a value equivalent to
// 'value'.
template <typename Sequence, typename T>
-bool c_binary_search(Sequence&& sequence, const T& value) {
+bool c_binary_search(const Sequence& sequence, const T& value) {
return std::binary_search(container_algorithm_internal::c_begin(sequence),
container_algorithm_internal::c_end(sequence),
value);
@@ -1140,7 +1140,8 @@ bool c_binary_search(Sequence&& sequence, const T& value) {
// Overload of c_binary_search() for performing a `comp` comparison other than
// the default `operator<`.
template <typename Sequence, typename T, typename LessThan>
-bool c_binary_search(Sequence&& sequence, const T& value, LessThan&& comp) {
+bool c_binary_search(const Sequence& sequence, const T& value,
+ LessThan&& comp) {
return std::binary_search(container_algorithm_internal::c_begin(sequence),
container_algorithm_internal::c_end(sequence),
value, std::forward<LessThan>(comp));
diff --git a/contrib/restricted/abseil-cpp/absl/algorithm/ya.make b/contrib/restricted/abseil-cpp/absl/algorithm/ya.make
index 26a3c441525..8981153caa7 100644
--- a/contrib/restricted/abseil-cpp/absl/algorithm/ya.make
+++ b/contrib/restricted/abseil-cpp/absl/algorithm/ya.make
@@ -6,9 +6,9 @@ LICENSE(Apache-2.0)
LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
-VERSION(20230125.3)
+VERSION(20230802.0)
-ORIGINAL_SOURCE(https://github.com/abseil/abseil-cpp/archive/20230125.3.tar.gz)
+ORIGINAL_SOURCE(https://github.com/abseil/abseil-cpp/archive/20230802.0.tar.gz)
NO_RUNTIME()