Template Function Catch::Matchers::Contains(T&&, Equality&&)

Function Documentation

template<typename T, typename Equality>
ContainsElementMatcher<T, Equality> Catch::Matchers::Contains(T &&elem, Equality &&eq)

Creates a matcher that checks whether a range contains a specific element.

Uses eq to do the comparisons, the element is provided on the rhs