Commit 504a5fe6 by Jonathan Wakely Committed by Jonathan Wakely

stl_bvector.h (vector<bool>::vector()): Add noexcept.

	* 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
parent 5265e7ba
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> 2015-06-25 Jonathan Wakely <jwakely@redhat.com>
* include/bits/locale_conv.h (__do_str_codecvt): Set __count. * include/bits/locale_conv.h (__do_str_codecvt): Set __count.
......
...@@ -573,6 +573,9 @@ template<typename _Alloc> ...@@ -573,6 +573,9 @@ template<typename _Alloc>
public: public:
vector() vector()
#if __cplusplus >= 201103L
noexcept(is_nothrow_default_constructible<allocator_type>::value)
#endif
: _Base() { } : _Base() { }
explicit explicit
......
...@@ -160,6 +160,9 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER ...@@ -160,6 +160,9 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
* @brief Default constructor creates no elements. * @brief Default constructor creates no elements.
*/ */
map() map()
#if __cplusplus >= 201103L
noexcept(is_nothrow_default_constructible<allocator_type>::value)
#endif
: _M_t() { } : _M_t() { }
/** /**
......
...@@ -158,6 +158,9 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER ...@@ -158,6 +158,9 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
* @brief Default constructor creates no elements. * @brief Default constructor creates no elements.
*/ */
multimap() multimap()
#if __cplusplus >= 201103L
noexcept(is_nothrow_default_constructible<allocator_type>::value)
#endif
: _M_t() { } : _M_t() { }
/** /**
......
...@@ -138,6 +138,9 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER ...@@ -138,6 +138,9 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
* @brief Default constructor creates no elements. * @brief Default constructor creates no elements.
*/ */
multiset() multiset()
#if __cplusplus >= 201103L
noexcept(is_nothrow_default_constructible<allocator_type>::value)
#endif
: _M_t() { } : _M_t() { }
/** /**
......
...@@ -140,6 +140,9 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER ...@@ -140,6 +140,9 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
* @brief Default constructor creates no elements. * @brief Default constructor creates no elements.
*/ */
set() set()
#if __cplusplus >= 201103L
noexcept(is_nothrow_default_constructible<allocator_type>::value)
#endif
: _M_t() { } : _M_t() { }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment