Bug 1664844 - Add DebugOnly::inspect member function. r=jwalden

Differential Revision: https://phabricator.services.mozilla.com/D90133
This commit is contained in:
Simon Giesecke
2020-09-18 06:33:12 +00:00
parent 97a56b12bd
commit 1c14056b87

View File

@@ -71,6 +71,8 @@ class MOZ_STACK_CLASS DebugOnly {
T& operator->() { return value; }
const T& operator->() const { return value; }
const T& inspect() const { return value; }
#else
DebugOnly() = default;
MOZ_IMPLICIT DebugOnly(const T&) {}