| @@ -23,6 +23,7 @@ | |||
| #include "scope_exit.h" | |||
| #include <utility> | |||
| #include <type_traits> | |||
| #include <functional> | |||
| namespace sr | |||
| { | |||
| @@ -120,6 +121,11 @@ namespace sr | |||
| return m_value.get(); | |||
| } | |||
| void reset(T& newValue) noexcept | |||
| { | |||
| m_value = std::ref(newValue); | |||
| } | |||
| private: | |||