Sfoglia il codice sorgente

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

Linus Groh 3 anni fa
parent
commit
8b2361e362
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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