Files
dist-spmv/algorithm.hpp
Carl William Pearson fb88da915d initial local+remote spmv
2021-06-11 13:09:50 -06:00

9 lines
184 B
C++

#pragma once
template<typename ForwardIt>
void shift_left(ForwardIt first, ForwardIt last, size_t n) {
while(first != last) {
*(first-n) = *first;
++first;
}
}