cpp/ranges/take while view/sentinel/operator cmp

Compares a with an iterator into (possibly const-qualified) view. The iterator is typically obtained from a call to.

Returns if  compares equal to the underlying sentinel of  (i.e. ), or if the predicate returns  when applied to.

Return value
, where denotes the stored sentinel and  denotes the stored pointer to predicate.