Skip to content

Commit 00102f1

Browse files
hanickadottkoeppe
authored andcommitted
[container] unify to friend constexpr (there were few constexpr friend)
1 parent acf370f commit 00102f1

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

source/containers.tex

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2403,7 +2403,7 @@
24032403
noexcept(ator_traits::propagate_on_container_swap::value ||
24042404
ator_traits::is_always_equal::value);
24052405

2406-
constexpr friend void swap(@\placeholdernc{node-handle}@& x, @\placeholdernc{node-handle}@& y) noexcept(noexcept(x.swap(y))) {
2406+
friend constexpr void swap(@\placeholdernc{node-handle}@& x, @\placeholdernc{node-handle}@& y) noexcept(noexcept(x.swap(y))) {
24072407
x.swap(y);
24082408
}
24092409
};
@@ -10913,11 +10913,11 @@
1091310913
is_nothrow_move_constructible_v<T>));
1091410914
constexpr void clear() noexcept;
1091510915

10916-
constexpr friend bool operator==(const inplace_vector& x,
10916+
friend constexpr bool operator==(const inplace_vector& x,
1091710917
const inplace_vector& y);
10918-
constexpr friend @\exposid{synth-three-way-result}@<T>
10918+
friend constexpr @\exposid{synth-three-way-result}@<T>
1091910919
operator<=>(const inplace_vector& x, const inplace_vector& y);
10920-
constexpr friend void swap(inplace_vector& x, inplace_vector& y)
10920+
friend constexpr void swap(inplace_vector& x, inplace_vector& y)
1092110921
noexcept(N == 0 || (is_nothrow_swappable_v<T> &&
1092210922
is_nothrow_move_constructible_v<T>))
1092310923
{ x.swap(y); }
@@ -17330,12 +17330,12 @@
1733017330
template<class K>
1733117331
constexpr pair<const_iterator, const_iterator> equal_range(const K& x) const;
1733217332

17333-
constexpr friend bool operator==(const flat_map& x, const flat_map& y);
17333+
friend constexpr bool operator==(const flat_map& x, const flat_map& y);
1733417334

17335-
constexpr friend @\exposid{synth-three-way-result}@<value_type>
17335+
friend constexpr @\exposid{synth-three-way-result}@<value_type>
1733617336
operator<=>(const flat_map& x, const flat_map& y);
1733717337

17338-
constexpr friend void swap(flat_map& x, flat_map& y) noexcept
17338+
friend constexpr void swap(flat_map& x, flat_map& y) noexcept
1733917339
{ x.swap(y); }
1734017340

1734117341
private:
@@ -18494,12 +18494,12 @@
1849418494
template<class K>
1849518495
constexpr pair<const_iterator, const_iterator> equal_range(const K& x) const;
1849618496

18497-
constexpr friend bool operator==(const flat_multimap& x, const flat_multimap& y);
18497+
friend constexpr bool operator==(const flat_multimap& x, const flat_multimap& y);
1849818498

18499-
constexpr friend @\exposid{synth-three-way-result}@<value_type>
18499+
friend constexpr @\exposid{synth-three-way-result}@<value_type>
1850018500
operator<=>(const flat_multimap& x, const flat_multimap& y);
1850118501

18502-
constexpr friend void swap(flat_multimap& x, flat_multimap& y) noexcept
18502+
friend constexpr void swap(flat_multimap& x, flat_multimap& y) noexcept
1850318503
{ x.swap(y); }
1850418504

1850518505
private:
@@ -19097,12 +19097,12 @@
1909719097
template<class K>
1909819098
constexpr pair<const_iterator, const_iterator> equal_range(const K& x) const;
1909919099

19100-
constexpr friend bool operator==(const flat_set& x, const flat_set& y);
19100+
friend constexpr bool operator==(const flat_set& x, const flat_set& y);
1910119101

19102-
constexpr friend @\placeholder{synth-three-way-result}@<value_type>
19102+
friend constexpr @\placeholder{synth-three-way-result}@<value_type>
1910319103
operator<=>(const flat_set& x, const flat_set& y);
1910419104

19105-
constexpr friend void swap(flat_set& x, flat_set& y) noexcept { x.swap(y); }
19105+
friend constexpr void swap(flat_set& x, flat_set& y) noexcept { x.swap(y); }
1910619106

1910719107
private:
1910819108
container_type @\exposidnc{c}@; // \expos
@@ -19768,12 +19768,12 @@
1976819768
template<class K>
1976919769
constexpr pair<const_iterator, const_iterator> equal_range(const K& x) const;
1977019770

19771-
constexpr friend bool operator==(const flat_multiset& x, const flat_multiset& y);
19771+
friend constexpr bool operator==(const flat_multiset& x, const flat_multiset& y);
1977219772

1977319773
friend @\placeholder{synth-three-way-result}@<value_type>
1977419774
constexpr operator<=>(const flat_multiset& x, const flat_multiset& y);
1977519775

19776-
constexpr friend void swap(flat_multiset& x, flat_multiset& y) noexcept
19776+
friend constexpr void swap(flat_multiset& x, flat_multiset& y) noexcept
1977719777
{ x.swap(y); }
1977819778

1977919779
private:

0 commit comments

Comments
 (0)