allocator.h (operator==, operator!=): Add exception specifications.
* include/bits/allocator.h (operator==, operator!=): Add exception specifications. From-SVN: r209379
This commit is contained in:
parent
5b99e0a022
commit
e364673d87
2 changed files with 7 additions and 0 deletions
|
@ -6,6 +6,9 @@
|
|||
* include/bits/vector.tcc (vector::_M_insert_aux,
|
||||
vector::_M_explace_back_aux): Likewise for assignment.
|
||||
|
||||
* include/bits/allocator.h (operator==, operator!=): Add exception
|
||||
specifications.
|
||||
|
||||
2014-04-11 Marc Glisse <marc.glisse@inria.fr>
|
||||
|
||||
PR libstdc++/59434
|
||||
|
|
|
@ -126,21 +126,25 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
template<typename _T1, typename _T2>
|
||||
inline bool
|
||||
operator==(const allocator<_T1>&, const allocator<_T2>&)
|
||||
_GLIBCXX_USE_NOEXCEPT
|
||||
{ return true; }
|
||||
|
||||
template<typename _Tp>
|
||||
inline bool
|
||||
operator==(const allocator<_Tp>&, const allocator<_Tp>&)
|
||||
_GLIBCXX_USE_NOEXCEPT
|
||||
{ return true; }
|
||||
|
||||
template<typename _T1, typename _T2>
|
||||
inline bool
|
||||
operator!=(const allocator<_T1>&, const allocator<_T2>&)
|
||||
_GLIBCXX_USE_NOEXCEPT
|
||||
{ return false; }
|
||||
|
||||
template<typename _Tp>
|
||||
inline bool
|
||||
operator!=(const allocator<_Tp>&, const allocator<_Tp>&)
|
||||
_GLIBCXX_USE_NOEXCEPT
|
||||
{ return false; }
|
||||
|
||||
/// @} group allocator
|
||||
|
|
Loading…
Add table
Reference in a new issue