Searched refs:LastNonzero (Results 1 – 1 of 1) sorted by relevance
1423 constexpr auto LastNonzero(Iter p, Iter q) -> decltype(+*p) { in LastNonzero() function1424 return p != q ? (LastNonzero(p+1, q) ?: *p) : 0; // expected-warning {{GNU}} in LastNonzero()1428 static_assert(LastNonzero(begin(arr1), end(arr1)) == 4, "");1431 static_assert(LastNonzero(begin(arr2), end(arr2)) == 5, "");1442 static_assert(LastNonzero(begin(arr3), end(arr3)) == 2, "");