Migrate ABSL_ARRAYSIZE()/arraysize() to std::size() where possible
Tested:
http://test/OCL:954251567:BASE:954243952:1785104449000:ca78722f
Some test failures are present; the CL author decided to mail
PiperOrigin-RevId: 954665648
diff --git a/quiche/common/platform/default/quiche_platform_impl/quiche_stack_trace_impl.cc b/quiche/common/platform/default/quiche_platform_impl/quiche_stack_trace_impl.cc
index b94da0c..c65dfe0 100644
--- a/quiche/common/platform/default/quiche_platform_impl/quiche_stack_trace_impl.cc
+++ b/quiche/common/platform/default/quiche_platform_impl/quiche_stack_trace_impl.cc
@@ -4,6 +4,7 @@
#include "quiche_platform_impl/quiche_stack_trace_impl.h"
+#include <iterator>
#include <string>
#include <vector>
@@ -52,7 +53,7 @@
bool QuicheShouldRunStackTraceTestImpl() {
void* unused[4]; // An arbitrary small number of stack frames to trace.
int stack_traces_found =
- absl::GetStackTrace(unused, ABSL_ARRAYSIZE(unused), /*skip_count=*/0);
+ absl::GetStackTrace(unused, std::size(unused), /*skip_count=*/0);
// absl::GetStackTrace() always returns 0 if the current platform is
// unsupported.
return stack_traces_found > 0;