Lines Matching refs:StrideIterator

27 class StrideIterator : public std::iterator<std::random_access_iterator_tag, T> {
32 StrideIterator(const StrideIterator&) = default;
33 StrideIterator(StrideIterator&&) = default;
34 StrideIterator& operator=(const StrideIterator&) = default;
35 StrideIterator& operator=(StrideIterator&&) = default;
37 StrideIterator(T* ptr, size_t stride) in StrideIterator() function
41 bool operator==(const StrideIterator& other) const {
46 bool operator!=(const StrideIterator& other) const {
50 StrideIterator& operator++() { // Value after modification.
55 StrideIterator operator++(int) {
56 StrideIterator<T> temp = *this;
61 StrideIterator& operator--() { // Value after modification.
66 StrideIterator operator--(int) {
67 StrideIterator<T> temp = *this;
72 StrideIterator& operator+=(difference_type delta) {
77 StrideIterator operator+(difference_type delta) const {
78 StrideIterator<T> temp = *this;
83 StrideIterator& operator-=(difference_type delta) {
88 StrideIterator operator-(difference_type delta) const {
89 StrideIterator<T> temp = *this;
94 difference_type operator-(const StrideIterator& rhs) {
118 friend bool operator<(const StrideIterator<U>& lhs, const StrideIterator<U>& rhs);
122 StrideIterator<T> operator+(typename StrideIterator<T>::difference_type dist,
123 const StrideIterator<T>& it) {
128 bool operator<(const StrideIterator<T>& lhs, const StrideIterator<T>& rhs) {
134 bool operator>(const StrideIterator<T>& lhs, const StrideIterator<T>& rhs) {
139 bool operator<=(const StrideIterator<T>& lhs, const StrideIterator<T>& rhs) {
144 bool operator>=(const StrideIterator<T>& lhs, const StrideIterator<T>& rhs) {