```c++
std::iota(src_perm.begin(), src_perm.end(), 0);
```