[libcxx-commits] [libcxx] [libc++] Implement std::move_only_function (P0288R9) (PR #94670)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 19 08:57:10 PST 2025


================
@@ -0,0 +1,235 @@
+//===----------------------------------------------------------------------===//
----------------
ldionne wrote:

In `small_buffer.h`, we need a `static_assert` that `_BufferSize` is at least the size of a pointer.

```
template <size_t _BufferSize, size_t _BufferAlignment>
  requires(_BufferSize > 0 && _BufferAlignment > 0)
class __small_buffer
```

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


More information about the libcxx-commits mailing list