[libcxx-commits] [libcxx] [libc++] Refactor some code in monotonic_buffer_resource (PR #117271)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Nov 22 00:16:33 PST 2024
================
@@ -48,9 +47,11 @@ class _LIBCPP_AVAILABILITY_PMR _LIBCPP_EXPORTED_FROM_ABI monotonic_buffer_resour
char* __end_;
size_t __size_;
};
- void* __try_allocate_from_chunk(size_t, size_t);
};
+ template <typename Chunk>
+ _LIBCPP_HIDE_FROM_ABI void* __try_allocate_from_chunk(Chunk& self, size_t bytes, size_t align);
----------------
ldionne wrote:
Can this be moved to a non-member function defined only in `memory_resource.cpp`?
https://github.com/llvm/llvm-project/pull/117271
More information about the libcxx-commits
mailing list