template<std::size_t N, typename T >
constexpr vector<T, N> cotila::rotate |
( |
vector< T, N > |
v, |
|
|
int |
n |
|
) |
| |
- Parameters
-
v | an N-vector of type T |
n | the amount to shift each element |
- Returns
- an N-vector of type T
such that 
Rotates a vector by shifting its elements.