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

Function ForEach

test/common/gtest/gtest.cpp:702–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700// Applies a function/functor to each element in the container.
701template <class Container, typename Functor>
702void ForEach(const Container& c, Functor functor) {
703 std::for_each(c.begin(), c.end(), functor);
704}
705
706// Returns the i-th element of the vector, or default_value if i is not
707// in range [0, v.size()).

Callers 6

ClearNonAdHocTestResultFunction · 0.85
~TestCaseMethod · 0.85
ClearResultMethod · 0.85
~TestEventRepeaterMethod · 0.85
~UnitTestImplMethod · 0.85
RunAllTestsMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected