Make arrayManipulation functions take input iteratorsand create a move_iterator
corbett5 opened this issue · 1 comments
corbett5 commented
instead of
void append( T * const ptr, INDEX_TYPE const size, T const * const values, INDEX_TYPE const n )
make it
void append( T * const ptr, INDEX_TYPE const size, InputIt fist, INDEX_TYPE const n )
and likewise for similar functions.
Also create a portable wrapper for std::move_iterator
and use it here
https://github.com/GEOSX/cxx-utilities/blob/ac9b2469dccefc19e4adf5810944a8a050f12967/src/src/sortedArrayManipulation.hpp#L715
to move insert the values in buffer.
corbett5 commented
Everything takes iterators now, no move iterator wrapper but that probably wouldn't be useful on device anyways.