| #include "scope_exit.h" | #include "scope_exit.h" | ||||
| #include <utility> | #include <utility> | ||||
| #include <type_traits> | #include <type_traits> | ||||
| #include <functional> | |||||
| namespace sr | namespace sr | ||||
| { | { | ||||
| return m_value.get(); | return m_value.get(); | ||||
| } | } | ||||
| void reset(T& newValue) noexcept | |||||
| { | |||||
| m_value = std::ref(newValue); | |||||
| } | |||||
| private: | private: | ||||