[libcxx-commits] [libcxx] [libc++][memory] P1132R8: `out_ptr` - a scalable output pointer abstraction (PR #73618)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jul 15 10:40:51 PDT 2024
================
@@ -0,0 +1,196 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
+
+// <memory>
+
+// [inout.ptr], function template inout_ptr
+// template<class Pointer = void, class Smart, class... Args>
+// auto inout_ptr(Smart& s, Args&&... args); // since c++23
+
+#include <cassert>
+#include <memory>
+#include <utility>
+
+#include "../types.h"
+
+void test_replace_int_p() {
----------------
ldionne wrote:
Please include a plain-english comment explaining these test cases. It's OK to put them in separate functions, but the function name isn't really enough to convey what's being tested here, a plain english comment is helpful.
https://github.com/llvm/llvm-project/pull/73618
More information about the libcxx-commits
mailing list