Migrate ABSL_ARRAYSIZE()/arraysize() to std::size() where possible
Tested:
http://test/OCL:954251351:BASE:954243952:1785104450205:81f7f952
Some test failures are present; the CL author decided to mail
PiperOrigin-RevId: 954634863
diff --git a/quiche/http2/hpack/hpack_constants.cc b/quiche/http2/hpack/hpack_constants.cc
index 5eea1ae..df4dc02 100644
--- a/quiche/http2/hpack/hpack_constants.cc
+++ b/quiche/http2/hpack/hpack_constants.cc
@@ -4,6 +4,7 @@
#include "quiche/http2/hpack/hpack_constants.h"
+#include <iterator>
#include <vector>
#include "absl/base/macros.h"
@@ -287,7 +288,7 @@
// The "constructor" for a HpackStaticEntry that computes the lengths at
// compile time.
#define STATIC_ENTRY(name, value) \
- { name, ABSL_ARRAYSIZE(name) - 1, value, ABSL_ARRAYSIZE(value) - 1 }
+ {name, std::size(name) - 1, value, std::size(value) - 1}
const std::vector<HpackStaticEntry>& HpackStaticTableVector() {
static const auto* kHpackStaticTable = new std::vector<HpackStaticEntry>{