[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
Sun May 24 08:46:49 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:

Opened #199431.

https://github.com/llvm/llvm-project/pull/199185


More information about the libcxx-commits mailing list