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

Function std_all_of

Testing/itkOpenCLVectorTest.cxx:25–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23//------------------------------------------------------------------------------
24template <typename type>
25bool
26std_all_of(const typename std::vector<type> & v, const type value)
27{
28 for (auto it = v.begin(); it != v.end(); ++it)
29 {
30 if (*it != value)
31 {
32 return false;
33 }
34 }
35 return true;
36}
37
38
39//------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected