This topic has not yet been rated - Rate this topic

none_of

Returns true when a condition is never present among elements in the given range.

template<class InputIterator, class BinaryPredicate> 
    bool none_of( 
        InputIterator _First, 
        InputIterator _Last, 
        BinaryPredicate _Comp 
    );
_First

An input iterator that indicates where to start to check a range of elements for a condition.

_Last

An input iterator that indicates the end of a range of elements.

_Comp

The condition to test for. This is provided by a user-defined predicate function object that defines the condition. A predicate takes a single argument and returns true or false.

Returns true if the condition is not detected at least once in the indicated range, and false if the condition is detected.

The template function returns true only if, for some N in the range [0, _Last - _First), the predicate _Comp(*(_First + N)) is always false.

Header: <algorithm>

Namespace: std

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.