Add missing types to counting_iterator
This commit is contained in:
1 parent
64b349aee2
commit
72606f2391
1 file changed
+6
@@ -628,6 +628,12 @@ class counting_iterator {
|
||||
mutable T blackhole_;
|
||||
|
||||
public:
|
||||
using iterator_category = std::output_iterator_tag;
|
||||
using value_type = T;
|
||||
using difference_type = std::ptrdiff_t;
|
||||
using pointer = T*;
|
||||
using reference = T&;
|
||||
|
||||
explicit counting_iterator(std::size_t &count): count_(count) {}
|
||||
counting_iterator(const counting_iterator &other): count_(other.count_) {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user