Skip to content

Commit 747f9c9

Browse files
avassalotticopybara-github
authored andcommitted
Mark Abseil container algorithms as constexpr for C++20.
This conditionally applies `constexpr` to the applicable container-based versions of the <algorithm> functions defined in "absl/algorithm/container.h" when building with C++20 or later. PiperOrigin-RevId: 800165245 Change-Id: Ie2d0b16b2af84c3abd448ca15306e861d5e6c773
1 parent ba9a180 commit 747f9c9

File tree

4 files changed

+1012
-143
lines changed

4 files changed

+1012
-143
lines changed

absl/algorithm/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ cc_library(
6868
deps = [
6969
":algorithm",
7070
"//absl/base:config",
71-
"//absl/base:nullability",
71+
"//absl/base:core_headers",
7272
"//absl/meta:type_traits",
7373
],
7474
)

absl/algorithm/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ absl_cc_library(
4949
DEPS
5050
absl::algorithm
5151
absl::config
52+
absl::core_headers
5253
absl::meta
53-
absl::nullability
5454
PUBLIC
5555
)
5656

@@ -63,7 +63,6 @@ absl_cc_test(
6363
${ABSL_TEST_COPTS}
6464
DEPS
6565
absl::algorithm_container
66-
absl::base
6766
absl::config
6867
absl::core_headers
6968
absl::memory

0 commit comments

Comments
 (0)