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 1384
1384
is the same as the value of the \libheader {cerrno} macro
1385
1385
shown in the above synopsis.
1386
1386
1387
- \rSec 1[depr.mem.poly.allocator.mem]{Deprecated \tcode {polymorphic_allocator} member function}
1388
-
1389
- \pnum
1390
- The following member is declared in addition to those members
1391
- specified in \ref {mem.poly.allocator.mem }:
1392
-
1393
- \begin {codeblock }
1394
- namespace std::pmr {
1395
- template<class Tp = byte>
1396
- class polymorphic_allocator {
1397
- public:
1398
- template <class T>
1399
- void destroy(T* p);
1400
- };
1401
- }
1402
- \end {codeblock }
1403
-
1404
- \indexlibrarymember {destroy}{polymorphic_allocator}%
1405
- \begin {itemdecl }
1406
- template<class T>
1407
- void destroy(T* p);
1408
- \end {itemdecl }
1409
-
1410
- \begin {itemdescr }
1411
- \pnum
1412
- \effects
1413
- As if by \tcode {p->\~ T()}.
1414
- \end {itemdescr }
1415
-
1416
1387
\rSec 1[depr.meta.types]{Deprecated type traits}
1417
1388
1418
1389
\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