Luna::find_if_not
template <typename _InputIt, typename _UnaryPredicate>
constexpr _InputIt find_if_not(_InputIt first, _InputIt last, _UnaryPredicate q)
Searches for the first element in the range that fails the user-provided unary predicate.
Parameters
-
in first
The iterator to the first element of the search range.
-
in last
The iterator to the one-past-last element of the search range.
-
in q
The user-provided unary predicate which will be called to test elements.
Return value
Returns one iterator to the first element that q(v)
is false
. Returns last
if not found.
Valid Usage
- The expression
q(v)
must be convertible tobool
for every argumentv
of typeVT
, whereVT
is the value type of_InputIt
, and must not modifyv
.