| 49 | { |
| 50 | template<typename T> |
| 51 | UIntVectorDataPtr sort( typename TypedData< std::vector<T> >::ConstPtr input ) |
| 52 | { |
| 53 | const std::vector<unsigned int> &indices = this->operator()( input->readable() ); |
| 54 | |
| 55 | UIntVectorDataPtr result = new UIntVectorData(); |
| 56 | result->writable().assign( indices.begin(), indices.end() ); |
| 57 | |
| 58 | return result; |
| 59 | } |
| 60 | }; |
| 61 | |
| 62 | void bindRadixSort() |