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 <>
parent 59f1f6dc
......@@ -433,6 +433,8 @@ public:
//, Destructor
~optional() = default;
void reset() noexcept { clear(); }
//, assignment
optional& operator=(nullopt_t) noexcept
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment