<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/67611>67611</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Rename __range_adaptor_closure_t
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc++
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
var-const
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ldionne
</td>
</tr>
</table>
<pre>
We discussed with @var-const today and noticed that `__range_adaptor_closure_t` was an incredibly bad name for this helper.
Spitballing an alternative:
```
template <class _Fn>
auto __make_range_adaptor_closure(_Fn&& __f) {
struct __tmp : _Fn, __range_adaptor_closure<__tmp> {
_LIBCPP_HIDE_FROM_ABI constexpr explicit __tmp(_Fn&& __f) : _Fn(std::move(__f)) { }
};
return __tmp{__f};
}
```
Filing an issue so we can go back to this (probably when we implement `std::range_adaptor_closure`).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0U8tu2zAQ_BrqsoghkbZkHXTwI0IDtGiQHnok-NhIbChSICk7-ftCsvNokQgEBYIzu7PDXRGj6RxiQzZ7QulJhBvlXUyEUrI5ZmJKvQ-N1cY7h5n0-qX5jaBNVFOMqOFsUg9knb8RIXktXkA4Dc4no1BD6kUCUuacB-E65EKLMfnAlfVxCsgTKXM4iwjCgXEqoDbSvoAUGpwYEB59gNSbCD3aEcOK5EeS7y77r9EkKaw1rpvpwiYMTiRzQsJ2H4GkzK9rOSYcRisSAmEHZUWMwFtH2O3lVkzJA-eDeMLPNRO6nfG0JLQEzh8JrYFU-wsbACCmMKkEnKdhBMJ2S3h6gC88IOywQAm7_TfO_PHvd_vD_T3_dne85e3Dzx98t7-DxW18HgPg82iNMtdsn0p7FbCNSc_GsN3gT0sVC-AqH0h1fE89H9gHKQHTFNw1SbWfmR8Qb9T_jL7srXl9IRPjhBA9nBGUcNB5kEI9QfKXNyZ0OwYvxdwB5x7djDPDaHFAt3TRWwWfG1nmhNarTDdM16wWGTZFWW-2m6KsWNY3Qm6Y1tVjrjfbitV5rWoqVVUwJRktSpWZhuaU5TWtaLFZM7YqUcpCFUJLXepyXZN1joMwdmXtaVj50GVLSU1ZlUWRWSHRxus0WSMVoftlLeMUmpl0I6cuknVuTUzxPUwyyWLzgEvPfzkr2RRs06c0xtkF2hLadib1k1wpPxDazuGuv5sx-D-oEqHtIjES2i4q_wYAAP__kOU8EQ">