You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<cxx-preconditions>alignment shall be a power of two.</cxx-preconditions>
207
+
<cxx-requires>alignment shall be a power of two.</cxx-requires>
208
208
<cxx-returns>A derived class shall implement this function to return a pointer to allocated storage (<cxx-refin="cxx" to="basic.stc.dynamic.deallocation"></cxx-ref>) with a size of at least <code>bytes</code>.
209
209
The returned storage is aligned to the specified alignment, if such alignment is supported;
210
210
otherwise it is aligned to <code>max_align</code>.</cxx-returns>
@@ -213,8 +213,8 @@ <h1><code>memory_resource</code> protected virtual member functions</h1>
<cxx-preconditions><code>p</code> shall have been returned from a prior call to <code>allocate(bytes, alignment)</code> on a memory resource equal to <code>*this</code>,
217
-
and the storage at <code>p</code> shall not yet have been deallocated.</cxx-preconditions>
216
+
<cxx-requires><code>p</code> shall have been returned from a prior call to <code>allocate(bytes, alignment)</code> on a memory resource equal to <code>*this</code>,
217
+
and the storage at <code>p</code> shall not yet have been deallocated.</cxx-requires>
218
218
<cxx-effects>A derived class shall implement this function to dispose of allocated storage.</cxx-effects>
<cxx-preconditions><code>p</code> was allocated from a memory resource, <code>x</code>, equal to <code>*m_resource</code>, using <code>x.allocate(n * sizeof(Tp), alignof(Tp))</code>.</cxx-preconditions>
342
+
<cxx-requires><code>p</code> was allocated from a memory resource, <code>x</code>, equal to <code>*m_resource</code>, using <code>x.allocate(n * sizeof(Tp), alignof(Tp))</code>.</cxx-requires>
343
343
<cxx-effects>Equivalent to <code>m_resource->deallocate(p, n * sizeof(Tp), alignof(Tp))</code>.</cxx-effects>
344
344
<cxx-throws>Nothing.</cxx-throws>
345
345
</cxx-function>
@@ -731,7 +731,7 @@ <h1>pool resource constructors and destructors</h1>
<cxx-preconditions><code>upstream</code> is the address of a valid memory resource.</cxx-preconditions>
734
+
<cxx-requires><code>upstream</code> is the address of a valid memory resource.</cxx-requires>
735
735
<cxx-effects>
736
736
Constructs a pool resource object that will obtain memory from <code>upstream</code> whenever the pool resource is unable to satisfy a memory request from its own internal data structures.
737
737
The resulting object will hold a copy of <code>upstream</code>, but will not own the resource to which <code>upstream</code> points.
@@ -881,8 +881,8 @@ <h1><code>monotonic_buffer_resource</code> constructor and destructor</h1>
<cxx-preconditions><code>upstream</code> shall be the address of a valid memory resource.
895
-
<code>buffer_size</code> shall be no larger than the number of bytes in <code>buffer</code>.</cxx-preconditions>
894
+
<cxx-requires><code>upstream</code> shall be the address of a valid memory resource.
895
+
<code>buffer_size</code> shall be no larger than the number of bytes in <code>buffer</code>.</cxx-requires>
896
896
<cxx-effects>Sets <code>upstream_rsrc</code> to <code>upstream</code>, <code>current_buffer</code> to <code>buffer</code>, and <code>next_buffer_size</code> to <code>initial_size</code> (but not less than 1),
897
897
then increases <code>next_buffer_size</code> by an implementation-defined growth factor (which need not be integral).</cxx-effects>
0 commit comments