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

kj::repeat() should support subscript operator.

parent c7268191
......@@ -722,6 +722,7 @@ public:
inline Iterator end() const { return Iterator(value, count); }
inline size_t size() const { return count; }
inline T operator[](ptrdiff_t) const { return value; }
private:
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