stl_bvector.h (vector<bool>::vector()): Add noexcept.
authorJonathan Wakely <jwakely@redhat.com>
Fri, 26 Jun 2015 17:26:38 +0000 (18:26 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 26 Jun 2015 17:26:38 +0000 (18:26 +0100)
* include/bits/stl_bvector.h (vector<bool>::vector()): Add noexcept.
* include/bits/stl_map.h (map::map()): Likewise.
* include/bits/stl_multimap.h (multimap::multimap()): Likewise.
* include/bits/stl_multiset.h (multiset::multiset()): Likewise.
* include/bits/stl_set.h (set::set()): Likewise.

From-SVN: r225024

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_bvector.h
libstdc++-v3/include/bits/stl_map.h
libstdc++-v3/include/bits/stl_multimap.h
libstdc++-v3/include/bits/stl_multiset.h
libstdc++-v3/include/bits/stl_set.h

index 7b7e2b9c1f55f886998fb890376f3e136810373d..f2cd0353ea684d8d1d968f96d57c3fabc5211df1 100644 (file)
@@ -1,3 +1,11 @@
+2015-06-26  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/bits/stl_bvector.h (vector<bool>::vector()): Add noexcept.
+       * include/bits/stl_map.h (map::map()): Likewise.
+       * include/bits/stl_multimap.h (multimap::multimap()): Likewise.
+       * include/bits/stl_multiset.h (multiset::multiset()): Likewise.
+       * include/bits/stl_set.h (set::set()): Likewise.
+
 2015-06-25  Jonathan Wakely  <jwakely@redhat.com>
 
        * include/bits/locale_conv.h (__do_str_codecvt): Set __count.
index 7b93d9508cb703ceba99b8eb1cb431caad39b94b..71bee213a867a380bb1c3a107a314115f0d7e949 100644 (file)
@@ -573,6 +573,9 @@ template<typename _Alloc>
 
   public:
     vector()
+#if __cplusplus >= 201103L
+      noexcept(is_nothrow_default_constructible<allocator_type>::value)
+#endif
     : _Base() { }
 
     explicit
index df18973931ec366c59b12734deb5f7fec2a793da..179e3f2a0bdeb71edbb1bd0dcdd3b5f3367c291b 100644 (file)
@@ -160,6 +160,9 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
        *  @brief  Default constructor creates no elements.
        */
       map()
+#if __cplusplus >= 201103L
+      noexcept(is_nothrow_default_constructible<allocator_type>::value)
+#endif
       : _M_t() { }
 
       /**
index f3d21ab8bea156fa51fc90c64451ed15b3f850bc..10ac0fadea8855664673534d4debf678877509ff 100644 (file)
@@ -158,6 +158,9 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
        *  @brief  Default constructor creates no elements.
        */
       multimap()
+#if __cplusplus >= 201103L
+      noexcept(is_nothrow_default_constructible<allocator_type>::value)
+#endif
       : _M_t() { }
 
       /**
index 7e92836aaecf2e16b5545ff8d03ff2fb522cf9d8..0a476d1b084bf5a49efc8ccd843b27964f97f9b9 100644 (file)
@@ -138,6 +138,9 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
        *  @brief  Default constructor creates no elements.
        */
       multiset()
+#if __cplusplus >= 201103L
+      noexcept(is_nothrow_default_constructible<allocator_type>::value)
+#endif
       : _M_t() { }
 
       /**
index 518923435702e799ad0d23fc24e1edb470d8cdac..2e5c89f22c20c7eb0e390e93c6b68a97fdca684f 100644 (file)
@@ -140,6 +140,9 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
        *  @brief  Default constructor creates no elements.
        */
       set()
+#if __cplusplus >= 201103L
+      noexcept(is_nothrow_default_constructible<allocator_type>::value)
+#endif
       : _M_t() { }
 
       /**