Stop using the deprecated std::random_shuffle, for the benefit of MSVC.

And generalize `hrandom_shuffle` to take an arbitrary `Iter`,
so that passing `vec.begin()` will work even with MSVC's
debug iterators. (Passing `&vec[0]` or `vec.data()` would work
either way, but I'd worry that someone would forget to do that
conscientiously every time.)
This commit is contained in:
Arthur O'Dwyer
2018-06-29 14:20:03 -07:00
parent 62db7ee250
commit 1a93fbcd45
3 changed files with 2 additions and 3 deletions
-1
View File
@@ -37,7 +37,6 @@ using std::imag;
using std::stable_sort;
using std::out_of_range;
using std::get;
using std::random_shuffle;
using std::move;
using std::make_tuple;