forked from TartanLlama/optional
Return value() in noexcept emplace
This commit is contained in:
@ -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