[libcxx-commits] [libcxx] [libc++][test] Refactor increasing_allocator (PR #115671)
Peng Liu via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Nov 29 06:26:32 PST 2024
================
@@ -0,0 +1,43 @@
+//===----------------------------------------------------------------------===//
+//
+// 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 INCREASING_ALLOCATOR_H
+#define INCREASING_ALLOCATOR_H
+
+#include <cstddef>
+#include <memory>
+
+#include "test_macros.h"
+
+#if TEST_STD_VER >= 23
+template <typename T>
+struct increasing_allocator {
----------------
winner245 wrote:
Thank you for your suggestion! I have added a short comment explaining the purpose and special functionality of the `increasing_allocator`. Please let me know if you have further suggestions on it.
I have also modified the PR description so that it reflects the real purpose of this PR.
https://github.com/llvm/llvm-project/pull/115671
More information about the libcxx-commits
mailing list