MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / Shuffle

Function Shuffle

tests/gtest/gtest-all.cc:726–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

ShuffleTestsMethod · 0.85

Calls 2

ShuffleRangeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected