Skip to content

P0771R1 std::function move constructor should be noexcept #2466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions source/utilities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14678,7 +14678,7 @@
function() noexcept;
function(nullptr_t) noexcept;
function(const function&);
function(function&&);
function(function&&) noexcept;
template<class F> function(F);

function& operator=(const function&);
Expand Down Expand Up @@ -14800,7 +14800,7 @@

\indexlibrary{\idxcode{function}!constructor}%
\begin{itemdecl}
function(function&& f);
function(function&& f) noexcept;
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -14811,11 +14811,6 @@
\tcode{f} is in a valid state with an unspecified value.

\pnum
\throws Shall not throw exceptions if \tcode{f}'s target is
a specialization of \tcode{reference_wrapper} or
a function pointer. Otherwise, may throw \tcode{bad_alloc} or
any exception thrown by the copy or move constructor
of the stored callable object.
\begin{note} Implementations should avoid the use of
dynamically allocated memory for small callable objects, for example,
where \tcode{f}'s target is an object holding only a pointer or reference
Expand Down