[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 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
----------------
ldionne wrote:
Note to self: we stopped while we were talking about whether we need `is_trivially_copyable` in `small_buffer` (which we pedantically need):
```
template <class _Tp, class _Decayed = decay_t<_Tp>>
static constexpr bool __fits_in_buffer =
is_trivially_move_constructible_v<_Decayed> && is_trivially_destructible_v<_Decayed> &&
sizeof(_Decayed) <= _BufferSize && alignof(_Decayed) <= _BufferAlignment;
```
https://github.com/llvm/llvm-project/pull/94670
More information about the libcxx-commits
mailing list