diff options
author | Abseil Team <absl-team@google.com> | 2020-07-24 13:00:52 -0700 |
---|---|---|
committer | Andy Getz <durandal@google.com> | 2020-07-24 16:15:46 -0400 |
commit | 2c8a5b0d890cfbd2c1e70163e347f3e00b4ddb49 (patch) | |
tree | d34982e21f00fdac3eaa2f049e2bc6113bed105b /absl/container/btree_test.cc | |
parent | 41a6263fd0bcc93a90ff739785f17260f8ea061e (diff) | |
download | abseil-2c8a5b0d890cfbd2c1e70163e347f3e00b4ddb49.tar.gz abseil-2c8a5b0d890cfbd2c1e70163e347f3e00b4ddb49.tar.bz2 abseil-2c8a5b0d890cfbd2c1e70163e347f3e00b4ddb49.zip |
Export of internal Abseil changes
--
873b52b0a691e759413c5db27dafc541a5da5263 by Andy Getzendanner <durandal@google.com>:
Introduce an internal-only thread-local caching wrapper around GetTID.
PiperOrigin-RevId: 323055682
--
091a4537f1ef6e158acbf4261cfae1af7a3bdb7f by Abseil Team <absl-team@google.com>:
Internal change
PiperOrigin-RevId: 322864497
--
c80ccfff2a825819f31826a30f48cca3297699f8 by Evan Brown <ezb@google.com>:
Roll forward b-tree changes simplifying deletion and getting rid of recursion in clear_and_delete().
We also change clear_and_delete() to avoid some unnecessary comparisons by restructuring the loops.
PiperOrigin-RevId: 322658938
--
81464c0fb9c8c6268dca2e530aba99e75e1e59ae by Gennadiy Rozental <rogeeff@google.com>:
Eliminate definition of RunningOnValgrind inside the library.
Fixes #674
Fixes #657
PiperOrigin-RevId: 322508440
GitOrigin-RevId: 873b52b0a691e759413c5db27dafc541a5da5263
Change-Id: I20b40c9e8fc62edcf981caab467cca33cf6fd2ba
Diffstat (limited to 'absl/container/btree_test.cc')
-rw-r--r-- | absl/container/btree_test.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/absl/container/btree_test.cc b/absl/container/btree_test.cc index 67ee7521..0c5f9368 100644 --- a/absl/container/btree_test.cc +++ b/absl/container/btree_test.cc @@ -15,6 +15,7 @@ #include "absl/container/btree_test.h" #include <cstdint> +#include <limits> #include <map> #include <memory> #include <stdexcept> @@ -1344,6 +1345,12 @@ class BtreeNodePeer { constexpr static size_t GetNumValuesPerNode() { return btree_node<typename Set::params_type>::kNodeValues; } + + template <typename Set> + constexpr static size_t GetMaxFieldType() { + return std::numeric_limits< + typename btree_node<typename Set::params_type>::field_type>::max(); + } }; namespace { |