Commit 7b916902 by Jonathan Wakely Committed by Jonathan Wakely

alloc_traits.h (allocator_traits::max_size()): LWG 2162: Add noexcept.

	* include/bits/alloc_traits.h (allocator_traits::max_size()): LWG
	2162: Add noexcept.

From-SVN: r199858
parent 776434d1
2013-06-08 Jonathan Wakely <jwakely.gcc@gmail.com> 2013-06-08 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/bits/alloc_traits.h (allocator_traits::max_size()): LWG
2162: Add noexcept.
2013-06-08 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/bits/stl_algo.h (is_permutation): Add overloads from N3671. * include/bits/stl_algo.h (is_permutation): Add overloads from N3671.
* include/bits/stl_algobase.h (equal, mismatch): Likewise. * include/bits/stl_algobase.h (equal, mismatch): Likewise.
* testsuite/25_algorithms/equal/1.cc: Remove duplicate test case. * testsuite/25_algorithms/equal/1.cc: Remove duplicate test case.
......
...@@ -412,7 +412,7 @@ _GLIBCXX_ALLOC_TR_NESTED_TYPE(propagate_on_container_swap, ...@@ -412,7 +412,7 @@ _GLIBCXX_ALLOC_TR_NESTED_TYPE(propagate_on_container_swap,
* Returns @c __a.max_size() if that expression is well-formed, * Returns @c __a.max_size() if that expression is well-formed,
* otherwise returns @c numeric_limits<size_type>::max() * otherwise returns @c numeric_limits<size_type>::max()
*/ */
static size_type max_size(const _Alloc& __a) static size_type max_size(const _Alloc& __a) noexcept
{ return _S_max_size(__a); } { return _S_max_size(__a); }
/** /**
......
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