1 parent ea81df3 commit a6c67ffCopy full SHA for a6c67ff
1 file changed
sliding_window.hpp
@@ -35,14 +35,13 @@ namespace iter {
35
window_size{win_sz}
36
{ }
37
38
+ using DerefVec = std::deque<collection_item_type<Container>>;
39
public:
40
- class Iterator {
41
+ class Iterator
42
+ : public std::iterator<std::input_iterator_tag, DerefVec>
43
+ {
44
private:
- // TODO move defs outside and subclass std::iterator
- using OpDerefElemType = collection_item_type<Container>;
- using DerefVec = std::deque<OpDerefElemType>;
45
-
46
iterator_type<Container> sub_iter;
47
DerefVec window;
48
0 commit comments