Do you have some efficient routine for returning array with indices for sorted elements in a array? I think that some convenient way exists using stl vector. Do you have already implemented an efficient algo without stl, or do you have a reference to pseudo code or C++ code?
Do you have some efficient routine for returning array with indices for sorted elements
Share
Using C++11, the following should work just fine: