@@ -112,11 +112,11 @@ <h1>Header <code><experimental/memory_resource></code> synopsis</h1>
112
112
bool operator!=(const polymorphic_allocator<T1> & a,
113
113
const polymorphic_allocator<T2> & b) noexcept;
114
114
115
- // The name resource_adaptor_imp is for exposition only.
116
- template <class Allocator> class resource_adaptor_imp;
115
+ // The name < var > resource_adaptor_imp</ var > is for exposition only.
116
+ template <class Allocator> class < var > resource_adaptor_imp</ var > ;
117
117
118
118
template <class Allocator>
119
- using resource_adaptor = resource_adaptor_imp<
119
+ using resource_adaptor = < var > resource_adaptor_imp</ var > <
120
120
allocator_traits<Allocator> ::rebind_alloc<char> > ;
121
121
122
122
// Global memory resources
@@ -475,7 +475,7 @@ <h1><code>resource_adaptor</code></h1>
475
475
In order that < code > resource_adaptor<X<T> > </ code > and < code > resource_adaptor<X<U> > </ code > are the same type for any allocator template < code > X</ code > and types < code > T</ code > and < code > U</ code > ,
476
476
< code > resource_adaptor<Allocator> </ code > is rendered as an alias to a class template such that < code > Allocator</ code > is rebound to a < code > char</ code > value type in every specialization of the class template.
477
477
The requirements on this class template are defined below.
478
- The name < code > resource_adaptor_imp</ code > is for exposition only and is not normative,
478
+ The name < code > < var > resource_adaptor_imp</ var > </ code > is for exposition only and is not normative,
479
479
but the definitions of the members of that class, whatever its name, are normative.
480
480
In addition to the < code > Allocator</ code > requirements (< cxx-ref in ="cxx " to ="allocator.requirements "> </ cxx-ref > ), the parameter to < code > resource_adaptor</ code > shall meet the following additional requirements:
481
481
</ p >
@@ -487,23 +487,23 @@ <h1><code>resource_adaptor</code></h1>
487
487
</ ul >
488
488
489
489
< pre > < code >
490
- // The name resource_adaptor_imp is for exposition only.
490
+ // The name < var > resource_adaptor_imp</ var > is for exposition only.
491
491
template <class Allocator>
492
- class resource_adaptor_imp : public memory_resource {
492
+ class < var > resource_adaptor_imp</ var > : public memory_resource {
493
493
// for exposition only
494
494
Allocator m_alloc;
495
495
496
496
public:
497
497
typedef Allocator allocator_type;
498
498
499
- resource_adaptor_imp() = default;
500
- resource_adaptor_imp(const resource_adaptor_imp&) = default;
501
- resource_adaptor_imp( resource_adaptor_imp&&) = default;
499
+ < var > resource_adaptor_imp</ var > () = default;
500
+ < var > resource_adaptor_imp</ var > (const < var > resource_adaptor_imp</ var > &) = default;
501
+ < var > resource_adaptor_imp</ var > ( < var > resource_adaptor_imp</ var > &&) = default;
502
502
503
- explicit resource_adaptor_imp(const Allocator& a2);
504
- explicit resource_adaptor_imp(Allocator&& a2);
503
+ explicit < var > resource_adaptor_imp</ var > (const Allocator& a2);
504
+ explicit < var > resource_adaptor_imp</ var > (Allocator&& a2);
505
505
506
- resource_adaptor_imp& operator=(const resource_adaptor_imp&) = default;
506
+ < var > resource_adaptor_imp</ var > & operator=(const < var > resource_adaptor_imp</ var > &) = default;
507
507
508
508
allocator_type get_allocator() const { return m_alloc; }
509
509
@@ -515,26 +515,26 @@ <h1><code>resource_adaptor</code></h1>
515
515
};
516
516
517
517
template <class Allocator>
518
- using resource_adaptor = typename resource_adaptor_imp<
518
+ using resource_adaptor = typename < var > resource_adaptor_imp</ var > <
519
519
allocator_traits<Allocator> ::template rebind_alloc<char> > ;</ code > </ pre >
520
520
</ cxx-section >
521
521
522
522
< cxx-section id ="memory.resource.adaptor.ctor ">
523
- < h1 > < code > resource_adaptor_imp</ code > constructors</ h1 >
523
+ < h1 > < code > < var > resource_adaptor_imp</ var > </ code > constructors</ h1 >
524
524
525
525
< cxx-function >
526
- < cxx-signature > explicit resource_adaptor_imp(const Allocator& a2);</ cxx-signature >
526
+ < cxx-signature > explicit < var > resource_adaptor_imp</ var > (const Allocator& a2);</ cxx-signature >
527
527
< cxx-effects > Initializes < code > m_alloc</ code > with < code > a2</ code > .</ cxx-effects >
528
528
</ cxx-function >
529
529
530
530
< cxx-function >
531
- < cxx-signature > explicit resource_adaptor_imp(Allocator&& a2);</ cxx-signature >
531
+ < cxx-signature > explicit < var > resource_adaptor_imp</ var > (Allocator&& a2);</ cxx-signature >
532
532
< cxx-effects > Initializes < code > m_alloc</ code > with < code > std::move(a2)</ code > .</ cxx-effects >
533
533
</ cxx-function >
534
534
</ cxx-section >
535
535
536
536
< cxx-section id ="memory.resource.adaptor.mem ">
537
- < h1 > < code > resource_adaptor_imp</ code > member functions</ h1 >
537
+ < h1 > < code > < var > resource_adaptor_imp</ var > </ code > member functions</ h1 >
538
538
539
539
< cxx-function >
540
540
< cxx-signature > void* do_allocate(size_t bytes, size_t alignment);</ cxx-signature >
@@ -549,7 +549,7 @@ <h1><code>resource_adaptor_imp</code> member functions</h1>
549
549
550
550
< cxx-function >
551
551
< cxx-signature > bool do_is_equal(const memory_resource& other) const;</ cxx-signature >
552
- < p > Let < code > p</ code > be < code > dynamic_cast<const resource_adaptor_imp*> (&other)</ code > .</ p >
552
+ < p > Let < code > p</ code > be < code > dynamic_cast<const < var > resource_adaptor_imp</ var > *> (&other)</ code > .</ p >
553
553
< cxx-returns > < code > false</ code > if < code > p</ code > is null, otherwise the value of < code > m_alloc == p-> m_alloc</ code > .</ cxx-returns >
554
554
</ cxx-function >
555
555
</ cxx-section >
0 commit comments