STL again:
```c++
std::iota(dest_perm, dest_perm+n_dest_mesh_elements, 0);
```