[libcxx-commits] [libcxx] [libc++] Partially implement P2846R6: `reserve_hint` (PR #206385)
Hristo Hristov via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jun 28 22:08:06 PDT 2026
================
@@ -149,6 +149,22 @@ class adjacent_transform_view : public view_interface<adjacent_transform_view<_V
{
return __inner_.size();
}
+
+# if _LIBCPP_STD_VER >= 26
+
+ [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto reserve_hint()
----------------
Zingam wrote:
Every part of a signature neets to be tested:
`[[nodiscard]]`, return type, constness, `noexcept`, etc.
I don't see `[[noexcept]]` tests. These are libc++ and therefore are located in `tests/libcxx/ranges` one file per view. Functions are ordered in the files in the order they appear in the headers.
https://github.com/llvm/llvm-project/pull/206385
More information about the libcxx-commits
mailing list