We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85db654 commit 65e92c4Copy full SHA for 65e92c4
libcxx/include/optional
@@ -476,13 +476,12 @@ struct __optional_storage_base<_Tp, true> {
476
}
477
478
template <class _Up>
479
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __assign_from_val(_Up&& __val) {
+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __assign_from_val(_Up&& __val) noexcept {
480
__value_ = std::addressof(__val);
481
482
483
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __swap(__optional_storage_base& __rhs) {
484
- using std::swap;
485
- swap(__value_, __rhs.__value_);
+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __swap(__optional_storage_base& __rhs) noexcept {
+ std::swap(__value_, __rhs.__value_);
486
487
};
488
0 commit comments