[ox/std] Remove std::iterator
This commit is contained in:
parent
94e3ed217a
commit
63c8503cb6
12
deps/ox/src/ox/std/iterator.hpp
vendored
12
deps/ox/src/ox/std/iterator.hpp
vendored
@ -31,16 +31,6 @@ struct random_access_iterator_tag: public bidirectional_iterator_tag {
|
|||||||
struct contiguous_iterator_tag: public random_access_iterator_tag {
|
struct contiguous_iterator_tag: public random_access_iterator_tag {
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename Category, typename T, typename DiffType = std::ptrdiff_t,
|
|
||||||
typename PointerType = T*, typename ReferenceType = T&>
|
|
||||||
struct iterator {
|
|
||||||
using iterator_category = Category;
|
|
||||||
using value_type = T;
|
|
||||||
using pointer = T*;
|
|
||||||
using reference = T&;
|
|
||||||
using difference_type = DiffType;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
@ -58,4 +48,4 @@ struct Iterator {
|
|||||||
using difference_type = DiffType;
|
using difference_type = DiffType;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user