Browse Source

AK: Add non-const DistinctNumeric::value() getter

Linus Groh 3 years ago
parent
commit
8b2361e362
1 changed files with 1 additions and 0 deletions
  1. 1 0
      AK/DistinctNumeric.h

+ 1 - 0
AK/DistinctNumeric.h

@@ -60,6 +60,7 @@ public:
     }
 
     constexpr const T& value() const { return m_value; }
+    constexpr T& value() { return m_value; }
 
     // Always implemented: identity.
     constexpr bool operator==(const Self& other) const