[libcxx-commits] [libcxx] [libc++][test] Refactor increasing_allocator (PR #115671)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Nov 28 11:47:55 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 {
----------------
ldionne wrote:
Could you please add a short comment explaining what this allocator does and in what ways it is special? Since this is promoted to a reusable utility, I think it's worth it.
https://github.com/llvm/llvm-project/pull/115671
More information about the libcxx-commits
mailing list