[libc++] Implement structured binding for std::ranges::subrange.
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Fri, 13 Aug 2021 20:20:13 +0000 (16:20 -0400)
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Wed, 18 Aug 2021 14:01:45 +0000 (10:01 -0400)
commit0fb189952c7b326eda3edeab640d5ada644ead8b
tree091c1d9252f87eaa6fec7e908e9ace22aa2d2922
parent38812f4ac122df2cef7754d7afda8c9a08695a03
[libc++] Implement structured binding for std::ranges::subrange.

The `get` half of this machinery was already implemented, but the `tuple_size`
and `tuple_element` parts were hiding in [ranges.syn] and therefore missed.

Differential Revision: https://reviews.llvm.org/D108054
libcxx/include/__ranges/subrange.h
libcxx/test/std/ranges/range.utility/range.subrange/access/structured_binding.pass.cpp [new file with mode: 0644]