diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2011-06-10 17:14:40 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2011-06-10 17:14:40 +0000 |
commit | 7d9cb05400f69764e2f9c3065c8024795c7a9a69 (patch) | |
tree | 3832bd31ced556e39afeabed732fc2ec9d262570 /libstdc++-v3/include/ext/mt_allocator.h | |
parent | 30a96b3b0c49394c861df8c07a7c506b95082937 (diff) | |
download | gcc-7d9cb05400f69764e2f9c3065c8024795c7a9a69.zip gcc-7d9cb05400f69764e2f9c3065c8024795c7a9a69.tar.gz gcc-7d9cb05400f69764e2f9c3065c8024795c7a9a69.tar.bz2 |
throw_allocator.h: Use noexcept.
2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
* include/ext/throw_allocator.h: Use noexcept.
* include/ext/pool_allocator.h: Likewise.
* include/ext/bitmap_allocator.h: Likewise.
* include/ext/new_allocator.h: Likewise.
* include/ext/malloc_allocator.h: Likewise.
* include/ext/array_allocator.h: Likewise.
* include/ext/mt_allocator.h: Likewise.
* include/ext/extptr_allocator.h: Likewise.
* testsuite/util/testsuite_allocator.h: Likewise; do not include
<cassert> directly, include <testsuite_hooks.h> instead.
From-SVN: r174918
Diffstat (limited to 'libstdc++-v3/include/ext/mt_allocator.h')
-rw-r--r-- | libstdc++-v3/include/ext/mt_allocator.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libstdc++-v3/include/ext/mt_allocator.h b/libstdc++-v3/include/ext/mt_allocator.h index 9281494..069476b 100644 --- a/libstdc++-v3/include/ext/mt_allocator.h +++ b/libstdc++-v3/include/ext/mt_allocator.h @@ -1,6 +1,6 @@ // MT-optimized allocator -*- C++ -*- -// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 +// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -577,15 +577,15 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION typedef _Tp value_type; pointer - address(reference __x) const + address(reference __x) const _GLIBCXX_NOEXCEPT { return std::__addressof(__x); } const_pointer - address(const_reference __x) const + address(const_reference __x) const _GLIBCXX_NOEXCEPT { return std::__addressof(__x); } size_type - max_size() const throw() + max_size() const _GLIBCXX_USE_NOEXCEPT { return size_t(-1) / sizeof(_Tp); } #ifdef __GXX_EXPERIMENTAL_CXX0X__ @@ -648,14 +648,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION typedef __mt_alloc<_Tp1, pol_type> other; }; - __mt_alloc() throw() { } + __mt_alloc() _GLIBCXX_USE_NOEXCEPT { } - __mt_alloc(const __mt_alloc&) throw() { } + __mt_alloc(const __mt_alloc&) _GLIBCXX_USE_NOEXCEPT { } template<typename _Tp1, typename _Poolp1> - __mt_alloc(const __mt_alloc<_Tp1, _Poolp1>&) throw() { } + __mt_alloc(const __mt_alloc<_Tp1, _Poolp1>&) _GLIBCXX_USE_NOEXCEPT { } - ~__mt_alloc() throw() { } + ~__mt_alloc() _GLIBCXX_USE_NOEXCEPT { } pointer allocate(size_type __n, const void* = 0); |