Skip to content

Commit e0b3fe1

Browse files
authored
[util.smartptr.weak] Remove redundant declaration of 'swap' (#4037)
The declaration of the non-member function is already present in the header synopsis [memory.syn] and does not need to be repeated in the class synopsis. We generally don't do this for any other free 'swap' function, either.
1 parent 70ae569 commit e0b3fe1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

source/utilities.tex

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11050,10 +11050,6 @@
1105011050

1105111051
template<class T>
1105211052
weak_ptr(shared_ptr<T>) -> weak_ptr<T>;
11053-
11054-
// \ref{util.smartptr.weak.spec}, specialized algorithms
11055-
template<class T>
11056-
void swap(weak_ptr<T>& a, weak_ptr<T>& b) noexcept;
1105711053
}
1105811054
\end{codeblock}
1105911055

0 commit comments

Comments
 (0)