assertExistsInArray

Asserts that the item exists inside the given array

@safe pure
void
assertExistsInArray
(
T
U
)
(,,
lazy string msg = null
,
string file = __FILE__
,
size_t line = __LINE__
)
if (
isArray!T &&
is(typeof(
haystack.front == needle ||
is(T == void[])
))
)

Throws

AssertException otherwise

Meta