We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5327e4 commit 49b0b74Copy full SHA for 49b0b74
execution.bs
@@ -4088,9 +4088,9 @@ following new paragraph:</span>
4088
<pre highlight="c++">
4089
template<class Alloc>
4090
concept <i>simple-allocator</i> =
4091
- requires(Alloc alloc, size_t n, typename Alloc::value_type* p) {
4092
- { alloc.allocate(n) } -> same_as<typename Alloc::value_type*>;
4093
- { alloc.deallocate(p, n) };
+ requires(Alloc alloc, size_t n) {
+ { *alloc.allocate(n) } -> same_as<typename Alloc::value_type&>;
+ { alloc.deallocate(alloc.allocate(n), n) };
4094
} &&
4095
copy_constructible<Alloc> &&
4096
equality_comparable<Alloc>;
0 commit comments