浏览代码

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 const T& value() const { return m_value; }
+    constexpr T& value() { return m_value; }
 
 
     // Always implemented: identity.
     // Always implemented: identity.
     constexpr bool operator==(const Self& other) const
     constexpr bool operator==(const Self& other) const