MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / Shuffle

Function Shuffle

rtpose_wrapper/src/gtest/gtest-all.cpp:720–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718// Performs an in-place shuffle of the vector's elements.
719template <typename E>
720inline void Shuffle(internal::Random* random, std::vector<E>* v) {
721 ShuffleRange(random, 0, static_cast<int>(v->size()), v);
722}
723
724// A function for deleting an object. Handy for being used as a
725// functor.

Callers 1

ShuffleTestsMethod · 0.85

Calls 2

ShuffleRangeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected