Return value() in noexcept emplace
This commit is contained in:
1 parent
47b120fd53
commit
c194f73a07
1 file changed
+1
@@ -2252,6 +2252,7 @@ public:
|
||||
|
||||
*this = nullopt;
|
||||
this->construct(std::forward<Args>(args)...);
|
||||
return value();
|
||||
}
|
||||
|
||||
/// Swaps this optional with the other.
|
||||
|
||||
Reference in new issue
Block a user