Skip to content

Commit 2fe773b

Browse files
committed
[containers] Minor whitespace and ordering improvements
1 parent 6ebd25d commit 2fe773b

File tree

1 file changed

+26
-27
lines changed

1 file changed

+26
-27
lines changed

source/containers.tex

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2942,7 +2942,7 @@
29422942
iterator insert(const_iterator position, T&& x);
29432943
iterator insert(const_iterator position, size_type n, const T& x);
29442944
template <class InputIterator>
2945-
iterator insert (const_iterator position, InputIterator first, InputIterator last);
2945+
iterator insert(const_iterator position, InputIterator first, InputIterator last);
29462946
iterator insert(const_iterator position, initializer_list<T>);
29472947

29482948
void pop_front();
@@ -3295,7 +3295,7 @@
32953295
const_iterator cend() const noexcept;
32963296

32973297
// capacity:
3298-
bool empty() const noexcept;
3298+
bool empty() const noexcept;
32993299
size_type max_size() const noexcept;
33003300

33013301
// \ref{forwardlist.access}, element access:
@@ -5218,7 +5218,7 @@
52185218
void pop_back();
52195219
template <class... Args> iterator emplace(const_iterator position, Args&&... args);
52205220
iterator insert(const_iterator position, const bool& x);
5221-
iterator insert (const_iterator position, size_type n, const bool& x);
5221+
iterator insert(const_iterator position, size_type n, const bool& x);
52225222
template <class InputIterator>
52235223
iterator insert(const_iterator position,
52245224
InputIterator first, InputIterator last);
@@ -7029,17 +7029,17 @@
70297029
void reserve(size_type n);
70307030
};
70317031

7032-
template <class Key, class T, class Hash, class Pred, class Alloc>
7033-
void swap(unordered_map<Key, T, Hash, Pred, Alloc>& x,
7034-
unordered_map<Key, T, Hash, Pred, Alloc>& y)
7035-
noexcept(noexcept(x.swap(y)));
7036-
70377032
template <class Key, class T, class Hash, class Pred, class Alloc>
70387033
bool operator==(const unordered_map<Key, T, Hash, Pred, Alloc>& a,
70397034
const unordered_map<Key, T, Hash, Pred, Alloc>& b);
70407035
template <class Key, class T, class Hash, class Pred, class Alloc>
70417036
bool operator!=(const unordered_map<Key, T, Hash, Pred, Alloc>& a,
70427037
const unordered_map<Key, T, Hash, Pred, Alloc>& b);
7038+
7039+
template <class Key, class T, class Hash, class Pred, class Alloc>
7040+
void swap(unordered_map<Key, T, Hash, Pred, Alloc>& x,
7041+
unordered_map<Key, T, Hash, Pred, Alloc>& y)
7042+
noexcept(noexcept(x.swap(y)));
70437043
}
70447044
\end{codeblock}
70457045

@@ -7435,17 +7435,18 @@
74357435
void reserve(size_type n);
74367436
};
74377437

7438-
template <class Key, class T, class Hash, class Pred, class Alloc>
7439-
void swap(unordered_multimap<Key, T, Hash, Pred, Alloc>& x,
7440-
unordered_multimap<Key, T, Hash, Pred, Alloc>& y)
7441-
noexcept(noexcept(x.swap(y)));
7442-
74437438
template <class Key, class T, class Hash, class Pred, class Alloc>
74447439
bool operator==(const unordered_multimap<Key, T, Hash, Pred, Alloc>& a,
74457440
const unordered_multimap<Key, T, Hash, Pred, Alloc>& b);
74467441
template <class Key, class T, class Hash, class Pred, class Alloc>
74477442
bool operator!=(const unordered_multimap<Key, T, Hash, Pred, Alloc>& a,
74487443
const unordered_multimap<Key, T, Hash, Pred, Alloc>& b);
7444+
7445+
template <class Key, class T, class Hash, class Pred, class Alloc>
7446+
void swap(unordered_multimap<Key, T, Hash, Pred, Alloc>& x,
7447+
unordered_multimap<Key, T, Hash, Pred, Alloc>& y)
7448+
noexcept(noexcept(x.swap(y)));
7449+
74497450
}
74507451
\end{codeblock}
74517452

@@ -7716,17 +7717,17 @@
77167717
void reserve(size_type n);
77177718
};
77187719

7719-
template <class Key, class Hash, class Pred, class Alloc>
7720-
void swap(unordered_set<Key, Hash, Pred, Alloc>& x,
7721-
unordered_set<Key, Hash, Pred, Alloc>& y)
7722-
noexcept(noexcept(x.swap(y)));
7723-
77247720
template <class Key, class Hash, class Pred, class Alloc>
77257721
bool operator==(const unordered_set<Key, Hash, Pred, Alloc>& a,
77267722
const unordered_set<Key, Hash, Pred, Alloc>& b);
77277723
template <class Key, class Hash, class Pred, class Alloc>
77287724
bool operator!=(const unordered_set<Key, Hash, Pred, Alloc>& a,
77297725
const unordered_set<Key, Hash, Pred, Alloc>& b);
7726+
7727+
template <class Key, class Hash, class Pred, class Alloc>
7728+
void swap(unordered_set<Key, Hash, Pred, Alloc>& x,
7729+
unordered_set<Key, Hash, Pred, Alloc>& y)
7730+
noexcept(noexcept(x.swap(y)));
77307731
}
77317732
\end{codeblock}
77327733

@@ -7967,17 +7968,17 @@
79677968
void reserve(size_type n);
79687969
};
79697970

7970-
template <class Key, class Hash, class Pred, class Alloc>
7971-
void swap(unordered_multiset<Key, Hash, Pred, Alloc>& x,
7972-
unordered_multiset<Key, Hash, Pred, Alloc>& y)
7973-
noexcept(noexcept(x.swap(y)));
7974-
79757971
template <class Key, class Hash, class Pred, class Alloc>
79767972
bool operator==(const unordered_multiset<Key, Hash, Pred, Alloc>& a,
79777973
const unordered_multiset<Key, Hash, Pred, Alloc>& b);
79787974
template <class Key, class Hash, class Pred, class Alloc>
79797975
bool operator!=(const unordered_multiset<Key, Hash, Pred, Alloc>& a,
79807976
const unordered_multiset<Key, Hash, Pred, Alloc>& b);
7977+
7978+
template <class Key, class Hash, class Pred, class Alloc>
7979+
void swap(unordered_multiset<Key, Hash, Pred, Alloc>& x,
7980+
unordered_multiset<Key, Hash, Pred, Alloc>& y)
7981+
noexcept(noexcept(x.swap(y)));
79817982
}
79827983
\end{codeblock}
79837984

@@ -8431,10 +8432,8 @@
84318432

84328433
\indexlibrary{\idxcode{priority_queue}!\idxcode{priority_queue}}%
84338434
\begin{itemdecl}
8434-
priority_queue(const Compare& x,
8435-
const Container& y);
8436-
explicit priority_queue(const Compare& x = Compare(),
8437-
Container&& y = Container());
8435+
priority_queue(const Compare& x, const Container& y);
8436+
explicit priority_queue(const Compare& x = Compare(), Container&& y = Container());
84388437
\end{itemdecl}
84398438

84408439
\begin{itemdescr}

0 commit comments

Comments
 (0)