]> OCCT Git - occt.git/commit
0032909: Coding Rules - replace (removed from C++17) `std::random_shuffle` with ... CR0-WEEK-14 IR-2022-04-08
authorddzama <ddzama@opencascade.com>
Wed, 30 Mar 2022 09:30:01 +0000 (12:30 +0300)
committersmoskvin <smoskvin@opencascade.com>
Fri, 8 Apr 2022 16:04:34 +0000 (19:04 +0300)
commit7021de2fe7a69d4c788ccf43b8b096dbcc8597c8
treec32563a9f393794fd795588f7627b359bb6c4103
parente455c54bf0282a20931166b63a2fff0cbf670327
0032909: Coding Rules - replace (removed from C++17) `std::random_shuffle` with `std::shuffle` for random permutation algorithm

Since C++17 the accessible version of permutation function left the function:

template< class RandomIt, class URBG >
void shuffle( RandomIt first, RandomIt last, URBG&& g );

See details and example of use: https://en.cppreference.com/w/cpp/algorithm/random_shuffle
src/QANCollection/QANCollection_Stl.cxx