summaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/optional
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2017-06-19 14:16:03 +0200
committerEike Ziller <eike.ziller@qt.io>2017-06-19 12:21:04 +0000
commitfaae35d2af157fe7897963a5370864527ab86dde (patch)
tree3f891f83c78bb2763c9d78651ea3cedd6a163949 /src/libs/3rdparty/optional
parent59f1f6dc79d52629792cee733fbea2b55d37d98d (diff)
Optional: add reset()
It is part of C++17 Change-Id: I2aa4a11133a3d77644f4819492623c8e424ccd59 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/libs/3rdparty/optional')
-rw-r--r--src/libs/3rdparty/optional/optional.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/3rdparty/optional/optional.hpp b/src/libs/3rdparty/optional/optional.hpp
index 26d806450b..13df7c92ac 100644
--- a/src/libs/3rdparty/optional/optional.hpp
+++ b/src/libs/3rdparty/optional/optional.hpp
@@ -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
{