mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-20 09:35:05 +08:00
libstdc++: Add noexcept to unique_ptr accessors
Signed-off-by: Jonathan Wakely <jwakely@redhat.com> libstdc++-v3/ChangeLog: * include/bits/unique_ptr.h (__uniq_ptr_impl::_M_ptr) (__uniq_ptr_impl::_M_deleter): Add noexcept.
This commit is contained in:
parent
f9f1a6efaa
commit
869107c9c9
@ -169,10 +169,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||
return *this;
|
||||
}
|
||||
|
||||
pointer& _M_ptr() { return std::get<0>(_M_t); }
|
||||
pointer _M_ptr() const { return std::get<0>(_M_t); }
|
||||
_Dp& _M_deleter() { return std::get<1>(_M_t); }
|
||||
const _Dp& _M_deleter() const { return std::get<1>(_M_t); }
|
||||
pointer& _M_ptr() noexcept { return std::get<0>(_M_t); }
|
||||
pointer _M_ptr() const noexcept { return std::get<0>(_M_t); }
|
||||
_Dp& _M_deleter() noexcept { return std::get<1>(_M_t); }
|
||||
const _Dp& _M_deleter() const noexcept { return std::get<1>(_M_t); }
|
||||
|
||||
void reset(pointer __p) noexcept
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user