[libcxx-commits] [libcxx] [libc++][test] Add backported `destroy({_at, _n})` for tests (PR #199185)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Sat May 23 09:02:48 PDT 2026
================
@@ -0,0 +1,47 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LIBCPP_TEST_STD_UTILITIES_MEMORY_SPECIALIZED_ALGORITHMS_DESTROY_H
+#define LIBCPP_TEST_STD_UTILITIES_MEMORY_SPECIALIZED_ALGORITHMS_DESTROY_H
+
+#include <cstddef>
+#include <memory>
+#include <type_traits>
+
+#include "test_macros.h"
+
+namespace backport {
----------------
frederick-vs-ja wrote:
I think a namespace encourages users to use qualified function calls, which is consistent with our conventional use of `std::` in test files. Namespace `test` might be better, but `test` is often used as a function name.
https://github.com/llvm/llvm-project/pull/199185
More information about the libcxx-commits
mailing list