forked from TartanLlama/optional
Return value() in noexcept emplace
This commit is contained in:
@ -2252,6 +2252,7 @@ public:
|
|||||||
|
|
||||||
*this = nullopt;
|
*this = nullopt;
|
||||||
this->construct(std::forward<Args>(args)...);
|
this->construct(std::forward<Args>(args)...);
|
||||||
|
return value();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Swaps this optional with the other.
|
/// Swaps this optional with the other.
|
||||||
|
Reference in New Issue
Block a user