Skip to content

Commit a2dfa61

Browse files
jensmaurerzygoloid
authored andcommitted
[queue.syn,stack.syn] Add partial specialization of uses_allocator
1 parent 721f2d6 commit a2dfa61

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

source/containers.tex

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9568,9 +9568,6 @@
95689568

95699569
namespace std {
95709570
template<class T, class Container = deque<T>> class queue;
9571-
template<class T, class Container = vector<T>,
9572-
class Compare = less<typename Container::value_type>>
9573-
class priority_queue;
95749571

95759572
template<class T, class Container>
95769573
bool operator==(const queue<T, Container>& x, const queue<T, Container>& y);
@@ -9587,9 +9584,18 @@
95879584

95889585
template<class T, class Container>
95899586
void swap(queue<T, Container>& x, queue<T, Container>& y) noexcept(noexcept(x.swap(y)));
9587+
template<class T, class Container, class Alloc>
9588+
struct uses_allocator<queue<T, Container>, Alloc>;
9589+
9590+
template<class T, class Container = vector<T>,
9591+
class Compare = less<typename Container::value_type>>
9592+
class priority_queue;
9593+
95909594
template<class T, class Container, class Compare>
95919595
void swap(priority_queue<T, Container, Compare>& x,
95929596
priority_queue<T, Container, Compare>& y) noexcept(noexcept(x.swap(y)));
9597+
template<class T, class Container, class Compare, class Alloc>
9598+
struct uses_allocator<priority_queue<T, Container, Compare>, Alloc>;
95939599
}
95949600
\end{codeblock}
95959601

@@ -9617,6 +9623,8 @@
96179623

96189624
template<class T, class Container>
96199625
void swap(stack<T, Container>& x, stack<T, Container>& y) noexcept(noexcept(x.swap(y)));
9626+
template<class T, class Container, class Alloc>
9627+
struct uses_allocator<stack<T, Container>, Alloc>;
96209628
}
96219629
\end{codeblock}
96229630

0 commit comments

Comments
 (0)