Skip to content

Commit 9a0ad0e

Browse files
committed
Merge pull request #479 from tkoeppe/consistency_fixes_3
[containers] Minor whitespace and ordering improvements
2 parents 837fc82 + 2fe773b commit 9a0ad0e

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();
@@ -3297,7 +3297,7 @@
32973297
const_iterator cend() const noexcept;
32983298

32993299
// capacity:
3300-
bool empty() const noexcept;
3300+
bool empty() const noexcept;
33013301
size_type max_size() const noexcept;
33023302

33033303
// \ref{forwardlist.access}, element access:
@@ -5241,7 +5241,7 @@
52415241
void pop_back();
52425242
template <class... Args> iterator emplace(const_iterator position, Args&&... args);
52435243
iterator insert(const_iterator position, const bool& x);
5244-
iterator insert (const_iterator position, size_type n, const bool& x);
5244+
iterator insert(const_iterator position, size_type n, const bool& x);
52455245
template <class InputIterator>
52465246
iterator insert(const_iterator position,
52475247
InputIterator first, InputIterator last);
@@ -7081,17 +7081,17 @@
70817081
void reserve(size_type n);
70827082
};
70837083

7084-
template <class Key, class T, class Hash, class Pred, class Alloc>
7085-
void swap(unordered_map<Key, T, Hash, Pred, Alloc>& x,
7086-
unordered_map<Key, T, Hash, Pred, Alloc>& y)
7087-
noexcept(noexcept(x.swap(y)));
7088-
70897084
template <class Key, class T, class Hash, class Pred, class Alloc>
70907085
bool operator==(const unordered_map<Key, T, Hash, Pred, Alloc>& a,
70917086
const unordered_map<Key, T, Hash, Pred, Alloc>& b);
70927087
template <class Key, class T, class Hash, class Pred, class Alloc>
70937088
bool operator!=(const unordered_map<Key, T, Hash, Pred, Alloc>& a,
70947089
const unordered_map<Key, T, Hash, Pred, Alloc>& b);
7090+
7091+
template <class Key, class T, class Hash, class Pred, class Alloc>
7092+
void swap(unordered_map<Key, T, Hash, Pred, Alloc>& x,
7093+
unordered_map<Key, T, Hash, Pred, Alloc>& y)
7094+
noexcept(noexcept(x.swap(y)));
70957095
}
70967096
\end{codeblock}
70977097

@@ -7560,17 +7560,18 @@
75607560
void reserve(size_type n);
75617561
};
75627562

7563-
template <class Key, class T, class Hash, class Pred, class Alloc>
7564-
void swap(unordered_multimap<Key, T, Hash, Pred, Alloc>& x,
7565-
unordered_multimap<Key, T, Hash, Pred, Alloc>& y)
7566-
noexcept(noexcept(x.swap(y)));
7567-
75687563
template <class Key, class T, class Hash, class Pred, class Alloc>
75697564
bool operator==(const unordered_multimap<Key, T, Hash, Pred, Alloc>& a,
75707565
const unordered_multimap<Key, T, Hash, Pred, Alloc>& b);
75717566
template <class Key, class T, class Hash, class Pred, class Alloc>
75727567
bool operator!=(const unordered_multimap<Key, T, Hash, Pred, Alloc>& a,
75737568
const unordered_multimap<Key, T, Hash, Pred, Alloc>& b);
7569+
7570+
template <class Key, class T, class Hash, class Pred, class Alloc>
7571+
void swap(unordered_multimap<Key, T, Hash, Pred, Alloc>& x,
7572+
unordered_multimap<Key, T, Hash, Pred, Alloc>& y)
7573+
noexcept(noexcept(x.swap(y)));
7574+
75747575
}
75757576
\end{codeblock}
75767577

@@ -7842,17 +7843,17 @@
78427843
void reserve(size_type n);
78437844
};
78447845

7845-
template <class Key, class Hash, class Pred, class Alloc>
7846-
void swap(unordered_set<Key, Hash, Pred, Alloc>& x,
7847-
unordered_set<Key, Hash, Pred, Alloc>& y)
7848-
noexcept(noexcept(x.swap(y)));
7849-
78507846
template <class Key, class Hash, class Pred, class Alloc>
78517847
bool operator==(const unordered_set<Key, Hash, Pred, Alloc>& a,
78527848
const unordered_set<Key, Hash, Pred, Alloc>& b);
78537849
template <class Key, class Hash, class Pred, class Alloc>
78547850
bool operator!=(const unordered_set<Key, Hash, Pred, Alloc>& a,
78557851
const unordered_set<Key, Hash, Pred, Alloc>& b);
7852+
7853+
template <class Key, class Hash, class Pred, class Alloc>
7854+
void swap(unordered_set<Key, Hash, Pred, Alloc>& x,
7855+
unordered_set<Key, Hash, Pred, Alloc>& y)
7856+
noexcept(noexcept(x.swap(y)));
78567857
}
78577858
\end{codeblock}
78587859

@@ -8094,17 +8095,17 @@
80948095
void reserve(size_type n);
80958096
};
80968097

8097-
template <class Key, class Hash, class Pred, class Alloc>
8098-
void swap(unordered_multiset<Key, Hash, Pred, Alloc>& x,
8099-
unordered_multiset<Key, Hash, Pred, Alloc>& y)
8100-
noexcept(noexcept(x.swap(y)));
8101-
81028098
template <class Key, class Hash, class Pred, class Alloc>
81038099
bool operator==(const unordered_multiset<Key, Hash, Pred, Alloc>& a,
81048100
const unordered_multiset<Key, Hash, Pred, Alloc>& b);
81058101
template <class Key, class Hash, class Pred, class Alloc>
81068102
bool operator!=(const unordered_multiset<Key, Hash, Pred, Alloc>& a,
81078103
const unordered_multiset<Key, Hash, Pred, Alloc>& b);
8104+
8105+
template <class Key, class Hash, class Pred, class Alloc>
8106+
void swap(unordered_multiset<Key, Hash, Pred, Alloc>& x,
8107+
unordered_multiset<Key, Hash, Pred, Alloc>& y)
8108+
noexcept(noexcept(x.swap(y)));
81088109
}
81098110
\end{codeblock}
81108111

@@ -8558,10 +8559,8 @@
85588559

85598560
\indexlibrary{\idxcode{priority_queue}!\idxcode{priority_queue}}%
85608561
\begin{itemdecl}
8561-
priority_queue(const Compare& x,
8562-
const Container& y);
8563-
explicit priority_queue(const Compare& x = Compare(),
8564-
Container&& y = Container());
8562+
priority_queue(const Compare& x, const Container& y);
8563+
explicit priority_queue(const Compare& x = Compare(), Container&& y = Container());
85658564
\end{itemdecl}
85668565

85678566
\begin{itemdescr}

0 commit comments

Comments
 (0)