[libcxx-commits] [PATCH] D142335: [libc++][ranges] Implement `ranges::to`.

Konstantin Varlamov via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Apr 27 00:51:24 PDT 2023


var-const added inline comments.


================
Comment at: libcxx/test/support/unwrap_container_adaptor.h:14
+template <class Adaptor>
+struct UnwrapAdaptor : Adaptor {
+  UnwrapAdaptor() = default;
----------------
This could probably be useful in some of the existing adaptor tests as well. See e.g. `test/std/containers/container.adaptors/stack/stack.cons/deduct.pass.cpp`, lines 62-63:
```
//  I'd like to assert that we've gotten the right allocator in the stack, but
//  I don't know how to get at the underlying container.
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142335/new/

https://reviews.llvm.org/D142335



More information about the libcxx-commits mailing list