diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2011-05-26 15:35:02 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2011-05-26 15:35:02 +0000 |
commit | d3677132a22eb57336e8a749a19f346ac46cdca8 (patch) | |
tree | 44782d53d5d545431f8c57862eb297e196007679 /libstdc++-v3/src | |
parent | c61e40d377de73443f80d44900c024459b3631e1 (diff) | |
download | gcc-d3677132a22eb57336e8a749a19f346ac46cdca8.zip gcc-d3677132a22eb57336e8a749a19f346ac46cdca8.tar.gz gcc-d3677132a22eb57336e8a749a19f346ac46cdca8.tar.bz2 |
list.cc: Use noexcept per the FDIS.
2011-05-26 Paolo Carlini <paolo.carlini@oracle.com>
* src/list.cc: Use noexcept per the FDIS.
* src/compatibility-list-2.cc: Likewise.
* include/debug/set.h: Likewise.
* include/debug/unordered_map: Likewise.
* include/debug/multiset.h: Likewise.
* include/debug/forward_list: Likewise.
* include/debug/unordered_set: Likewise.
* include/debug/vector: Likewise.
* include/debug/map.h: Likewise.
* include/debug/deque: Likewise.
* include/debug/list: Likewise.
* include/debug/multimap.h: Likewise.
* include/profile/set.h: Likewise.
* include/profile/unordered_map: Likewise.
* include/profile/multiset.h: Likewise.
* include/profile/forward_list: Likewise.
* include/profile/vector: Likewise.
* include/profile/unordered_set: Likewise.
* include/profile/map.h: Likewise.
* include/profile/deque: Likewise.
* include/profile/list: Likewise.
* include/profile/multimap.h: Likewise.
* include/bits/hashtable.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/hashtable_policy.h: Likewise.
* include/bits/stl_set.h: Likewise.
* include/bits/forward_list.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_bvector.h: Likewise.
* include/bits/stl_tree.h: Likewise.
From-SVN: r174295
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r-- | libstdc++-v3/src/compatibility-list-2.cc | 20 | ||||
-rw-r--r-- | libstdc++-v3/src/list.cc | 15 |
2 files changed, 20 insertions, 15 deletions
diff --git a/libstdc++-v3/src/compatibility-list-2.cc b/libstdc++-v3/src/compatibility-list-2.cc index 58f8cea..ac69798 100644 --- a/libstdc++-v3/src/compatibility-list-2.cc +++ b/libstdc++-v3/src/compatibility-list-2.cc @@ -43,21 +43,22 @@ _GLIBCXX_BEGIN_NAMESPACE_COMPAT void _M_transfer(_List_node_base * const __first, - _List_node_base * const __last) throw (); + _List_node_base * const __last) _GLIBCXX_USE_NOEXCEPT; void - _M_reverse() throw (); + _M_reverse() _GLIBCXX_USE_NOEXCEPT; void - _M_hook(_List_node_base * const __position) throw (); + _M_hook(_List_node_base * const __position) _GLIBCXX_USE_NOEXCEPT; void - _M_unhook() throw (); + _M_unhook() _GLIBCXX_USE_NOEXCEPT; }; void - _List_node_base::_M_transfer(_List_node_base * const __first, - _List_node_base * const __last) throw () + _List_node_base:: + _M_transfer(_List_node_base * const __first, + _List_node_base * const __last) _GLIBCXX_USE_NOEXCEPT { if (this != __last) { @@ -75,7 +76,7 @@ _GLIBCXX_BEGIN_NAMESPACE_COMPAT } void - _List_node_base::_M_reverse() throw () + _List_node_base::_M_reverse() _GLIBCXX_USE_NOEXCEPT { _List_node_base* __tmp = this; do @@ -89,7 +90,8 @@ _GLIBCXX_BEGIN_NAMESPACE_COMPAT } void - _List_node_base::_M_hook(_List_node_base* const __position) throw () + _List_node_base:: + _M_hook(_List_node_base* const __position) _GLIBCXX_USE_NOEXCEPT { this->_M_next = __position; this->_M_prev = __position->_M_prev; @@ -98,7 +100,7 @@ _GLIBCXX_BEGIN_NAMESPACE_COMPAT } void - _List_node_base::_M_unhook() throw () + _List_node_base::_M_unhook() _GLIBCXX_USE_NOEXCEPT { _List_node_base* const __next_node = this->_M_next; _List_node_base* const __prev_node = this->_M_prev; diff --git a/libstdc++-v3/src/list.cc b/libstdc++-v3/src/list.cc index 92b007f..6dbad69 100644 --- a/libstdc++-v3/src/list.cc +++ b/libstdc++-v3/src/list.cc @@ -57,7 +57,8 @@ namespace std _GLIBCXX_VISIBILITY(default) _GLIBCXX_BEGIN_NAMESPACE_VERSION void - _List_node_base::swap(_List_node_base& __x, _List_node_base& __y) throw() + _List_node_base::swap(_List_node_base& __x, + _List_node_base& __y) _GLIBCXX_USE_NOEXCEPT { if ( __x._M_next != &__x ) { @@ -89,8 +90,9 @@ namespace std _GLIBCXX_VISIBILITY(default) } void - _List_node_base::_M_transfer(_List_node_base * const __first, - _List_node_base * const __last) throw() + _List_node_base:: + _M_transfer(_List_node_base * const __first, + _List_node_base * const __last) _GLIBCXX_USE_NOEXCEPT { if (this != __last) { @@ -108,7 +110,7 @@ namespace std _GLIBCXX_VISIBILITY(default) } void - _List_node_base::_M_reverse() throw() + _List_node_base::_M_reverse() _GLIBCXX_USE_NOEXCEPT { _List_node_base* __tmp = this; do @@ -122,7 +124,8 @@ namespace std _GLIBCXX_VISIBILITY(default) } void - _List_node_base::_M_hook(_List_node_base* const __position) throw() + _List_node_base:: + _M_hook(_List_node_base* const __position) _GLIBCXX_USE_NOEXCEPT { this->_M_next = __position; this->_M_prev = __position->_M_prev; @@ -131,7 +134,7 @@ namespace std _GLIBCXX_VISIBILITY(default) } void - _List_node_base::_M_unhook() throw() + _List_node_base::_M_unhook() _GLIBCXX_USE_NOEXCEPT { _List_node_base* const __next_node = this->_M_next; _List_node_base* const __prev_node = this->_M_prev; |