Add UnpackStructImpl specialization for 23 struct members.

PiperOrigin-RevId: 760700889
Change-Id: I52ea2bc83d218f73504c9dfba82ce0c07e59cbb2
This commit is contained in:
Abseil Team 2025-05-19 11:20:46 -07:00 committed by Copybara-Service
parent fa8438ae6b
commit bac6a8fd8a

View File

@ -3433,6 +3433,14 @@ auto UnpackStructImpl(const T& in, std::make_index_sequence<22>, char) {
return std::tie(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u,
v);
}
template <typename T>
auto UnpackStructImpl(const T& in, std::make_index_sequence<23>, char) {
const auto& [a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v,
w] = in;
return std::tie(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u,
v, w);
}
#endif // defined(__cpp_structured_bindings)
template <size_t I, typename T>