Commit 54a611d4 authored by Kenton Varda's avatar Kenton Varda

kj::repeat() should support subscript operator.

parent c7268191
...@@ -722,6 +722,7 @@ public: ...@@ -722,6 +722,7 @@ public:
inline Iterator end() const { return Iterator(value, count); } inline Iterator end() const { return Iterator(value, count); }
inline size_t size() const { return count; } inline size_t size() const { return count; }
inline T operator[](ptrdiff_t) const { return value; }
private: private:
T value; T value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment