MCPcopy Create free account
hub / github.com/SuperElastix/elastix / std_first_of

Function std_first_of

Testing/itkOpenCLVectorTest.cxx:41–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39//------------------------------------------------------------------------------
40template <typename type>
41bool
42std_first_of(const typename std::vector<type> & v, const std::size_t n, const type value)
43{
44 for (std::size_t i = 0; i < n; ++i)
45 {
46 if (v[i] != value)
47 {
48 return false;
49 }
50 }
51 return true;
52}
53
54
55//------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected