File tree Expand file tree Collapse file tree 3 files changed +19
-30
lines changed Expand file tree Collapse file tree 3 files changed +19
-30
lines changed Original file line number Diff line number Diff line change 1383
1383
is the same as the value of the \libheader {cerrno} macro
1384
1384
shown in the above synopsis.
1385
1385
1386
- \rSec 1[depr.mem.poly.allocator.mem]{Deprecated \tcode {polymorphic_allocator} member function}
1387
-
1388
- \pnum
1389
- The following member is declared in addition to those members
1390
- specified in \ref {mem.poly.allocator.mem }:
1391
-
1392
- \begin {codeblock }
1393
- namespace std::pmr {
1394
- template<class Tp = byte>
1395
- class polymorphic_allocator {
1396
- public:
1397
- template <class T>
1398
- void destroy(T* p);
1399
- };
1400
- }
1401
- \end {codeblock }
1402
-
1403
- \indexlibrarymember {destroy}{polymorphic_allocator}%
1404
- \begin {itemdecl }
1405
- template<class T>
1406
- void destroy(T* p);
1407
- \end {itemdecl }
1408
-
1409
- \begin {itemdescr }
1410
- \pnum
1411
- \effects
1412
- As if by \tcode {p->\~ T()}.
1413
- \end {itemdescr }
1414
-
1415
1386
\rSec 1[depr.meta.types]{Deprecated type traits}
1416
1387
1417
1388
\pnum
Original file line number Diff line number Diff line change 5813
5813
template<class T, class... Args>
5814
5814
void construct(T* p, Args&&... args);
5815
5815
5816
+ template <class T>
5817
+ void destroy(T* p);
5818
+
5816
5819
polymorphic_allocator select_on_container_copy_construction() const;
5817
5820
5818
5821
memory_resource* resource() const;
6023
6026
\effects
6024
6027
Equivalent to:
6025
6028
\begin {codeblock }
6026
- allocator_traits<polymorphic_allocator>:: destroy(*this, p);
6029
+ destroy(p);
6027
6030
deallocate_object(p);
6028
6031
\end {codeblock }
6029
6032
\end {itemdescr }
6053
6056
Nothing unless the constructor for \tcode {T} throws.
6054
6057
\end {itemdescr }
6055
6058
6059
+ \indexlibrarymember {destroy}{polymorphic_allocator}%
6060
+ \begin {itemdecl }
6061
+ template<class T>
6062
+ void destroy(T* p);
6063
+ \end {itemdecl }
6064
+
6065
+ \begin {itemdescr }
6066
+ \pnum
6067
+ \effects
6068
+ Equivalent to \tcode {p->\~ T()}.
6069
+ \end {itemdescr }
6070
+
6056
6071
\indexlibrarymember {select_on_container_copy_construction}{polymorphic_allocator}%
6057
6072
\begin {itemdecl }
6058
6073
polymorphic_allocator select_on_container_copy_construction() const;
Original file line number Diff line number Diff line change 48
48
% https://github.com/cplusplus/draft/pull/6255
49
49
\movedxref {container.gen.reqmts }{container.requirements.general}
50
50
51
+ % P2875 Undeprecate polymorphic_allocator::destroy
52
+ \movedxref {depr.mem.poly.allocator.mem }{mem.poly.allocator.mem}
53
+
51
54
% https://github.com/cplusplus/draft/pull/6653
52
55
\movedxref {mismatch }{alg.mismatch}
53
56
You can’t perform that action at this time.
0 commit comments