MCPcopy Create free account
hub / github.com/apache/singa / ArrayAwareFind

Function ArrayAwareFind

test/gtest/gtest.h:7872–7878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7870// equals elem. Element may be a native array type itself.
7871template <typename Iter, typename Element>
7872Iter ArrayAwareFind(Iter begin, Iter end, const Element& elem) {
7873 for (Iter it = begin; it != end; ++it) {
7874 if (internal::ArrayEq(*it, elem))
7875 return it;
7876 }
7877 return end;
7878}
7879
7880// CopyArray() copies a k-dimensional native array using the elements'
7881// operator=, where k can be any integer >= 0. When k is 0,

Callers

nothing calls this directly

Calls 1

ArrayEqFunction · 0.85

Tested by

no test coverage detected