SyTen

◆ hasMember() [1/2]

template<typename T , std::size_t rank>
bool syten::hasMember ( std::array< T, rank > const &  v,
T const &  e 
)

Returns true if the array has an element comparing equal to the second argument.

Parameters
vthe haystack
ethe needle
Returns
true if e in v, false otherwise.