فهرست منبع

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

Linus Groh 3 سال پیش
والد
کامیت
8b2361e362
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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