Skip to content

Commit

Permalink
[util.smartptr.weak] Remove redundant declaration of 'swap' (#4037)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JohelEGP committed Dec 14, 2020
1 parent 70ae569 commit e0b3fe1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions source/utilities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11050,10 +11050,6 @@

template<class T>
weak_ptr(shared_ptr<T>) -> weak_ptr<T>;

// \ref{util.smartptr.weak.spec}, specialized algorithms
template<class T>
void swap(weak_ptr<T>& a, weak_ptr<T>& b) noexcept;
}
\end{codeblock}

Expand Down

0 comments on commit e0b3fe1

Please sign in to comment.