Go to the documentation of this file.
15 #ifndef ABSL_CONTAINER_BTREE_TEST_H_
16 #define ABSL_CONTAINER_BTREE_TEST_H_
25 #include "absl/container/btree_map.h"
26 #include "absl/container/btree_set.h"
27 #include "absl/container/flat_hash_set.h"
28 #include "absl/strings/cord.h"
29 #include "absl/time/time.h"
33 namespace container_internal {
40 template <
typename T,
typename U>
48 template <
typename K,
typename V>
51 const K&
operator()(
const V& p)
const {
return p.first; }
65 assert(val <= maxval);
66 constexpr
unsigned kBase = 64;
70 buf[p--] =
' ' + (val % kBase);
114 template <
typename T,
typename U>
121 return std::make_pair(tgen(
i), ugen(
i));
130 std::minstd_rand0 rng(
seed);
138 value =
static_cast<int>(rng()) % (maxval + 1);
148 template <
typename V>
155 for (
int i = 0;
i <
n;
i++) {
156 vec.push_back(
gen(nums[
i]));
166 #endif // ABSL_CONTAINER_BTREE_TEST_H_
std::pair< T, U > operator()(int i) const
std::string operator()(int i) const
Generator< typename remove_pair_const< U >::type > ugen
static const uint8_t seed[20]
constexpr Time FromUnixMillis(int64_t ms)
std::pair< iterator, bool > insert(T &&value)
Cord operator()(int i) const
#define ABSL_NAMESPACE_END
std::pair< typename remove_pair_const< T >::type, typename remove_pair_const< U >::type > type
#define ABSL_NAMESPACE_BEGIN
absl::Time operator()(int i) const
K operator()(int i) const
char * GenerateDigits(char buf[16], unsigned val, unsigned maxval)
OPENSSL_EXPORT GENERAL_NAME * gen
Generator< typename remove_pair_const< T >::type > tgen
const K & operator()(const K &k) const
std::vector< int > GenerateNumbersWithSeed(int n, int maxval, int seed)
std::vector< V > GenerateValuesWithSeed(int n, int maxval, int seed)
typename std::remove_const< T >::type type
const K & operator()(const V &p) const
std::array< int64_t, Size > values
std::pair< std::string, std::string > pair
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:50