MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / Shuffle

Function Shuffle

test/common/gtest/gtest.cpp:739–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737// Performs an in-place shuffle of the vector's elements.
738template <typename E>
739inline void Shuffle(internal::Random* random, std::vector<E>* v) {
740 ShuffleRange(random, 0, static_cast<int>(v->size()), v);
741}
742
743// A function for deleting an object. Handy for being used as a
744// functor.

Callers 1

ShuffleTestsMethod · 0.85

Calls 2

ShuffleRangeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected