Add noexcept to std::function swap
authorJonathan Wakely <jwakely@redhat.com>
Mon, 22 Aug 2016 16:47:34 +0000 (17:47 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 22 Aug 2016 16:47:34 +0000 (17:47 +0100)
commit94f54d47ca0a7c629c4f950f139c06c959a765f6
tree45f20929df2facdcffcabdbc366b27245b246fff
parent1321723711ff8d2446da3eb2eb1830e6c172982b
Add noexcept to std::function swap

PR libstdc++/77322
* doc/xml/manual/intro.xml: Document DR 2062 change.
* include/std/functional (function::swap): Add noexcept.
(swap(function<Res(Args...)&, function<Res(Args...)&)): Likewise.
* testsuite/20_util/function/77322.cc: New test.

From-SVN: r239662
libstdc++-v3/ChangeLog
libstdc++-v3/doc/xml/manual/intro.xml
libstdc++-v3/include/std/functional
libstdc++-v3/testsuite/20_util/function/77322.cc [new file with mode: 0644]