move.h (__is_nothrow_swappable): Add.
authorDaniel Krugler <daniel.kruegler@googlemail.com>
Tue, 21 Jun 2011 23:01:03 +0000 (23:01 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 21 Jun 2011 23:01:03 +0000 (23:01 +0000)
commitccb4f5a707e68bf6793c69baa2af1cc7f0825c89
tree82c2da92b99050c1891187147d449cfd0ec61866
parent358bb337a5b54b0e6f9f263342437e9633d869bb
move.h (__is_nothrow_swappable): Add.

2011-06-22  Daniel Krugler  <daniel.kruegler@googlemail.com>
    Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/move.h (__is_nothrow_swappable): Add.
(swap(_Tp(&)[_Nm], _Tp(&)[_Nm])): Use noexcept.
* include/bits/algorithmfwd.h: Adjust.
* testsuite/25_algorithms/swap/noexcept.cc: New.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
From-SVN: r175277
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/algorithmfwd.h
libstdc++-v3/include/bits/move.h
libstdc++-v3/testsuite/25_algorithms/swap/noexcept.cc [new file with mode: 0644]