Commit faae35d2 authored by Eike Ziller's avatar Eike Ziller

Optional: add reset()

It is part of C++17

Change-Id: I2aa4a11133a3d77644f4819492623c8e424ccd59
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent 59f1f6dc
......@@ -433,6 +433,8 @@ public:
// 20.5.4.2, Destructor
~optional() = default;
void reset() noexcept { clear(); }
// 20.5.4.3, assignment
optional& operator=(nullopt_t) noexcept
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment