Component type: type
Finds the first character in a string that is neither
char str[MAXLEN];
…
const char* wptr = find_if(str, str + MAXLEN, compose2(not2(logical_or<bool>()), bind2nd (equal_to<char>(), ' '), bind2nd(equal_to<char>(), '
')));
assert(wptr == str + MAXLEN || !(*wptr == ' ' || *wptr == '
'));
Defined in the standard header functional, and in the nonstandard backward-compatibility header function.h.
Parameter | Description |
---|---|
AdaptableBinaryPredicate | The type of the function object that this |
Adaptable Binary Predicate
binary_function<AdaptableBinaryPredicate::first_argument_type, AdaptableBinaryPredicate::second_argument_type, bool>
Member | Where defined | Description |
---|---|---|
first_argument_type | Adaptable Binary Function | The type of the first argument: |
second_argument_type | Adaptable Binary Function | The type of the second argument: |
result_type | Adaptable Binary Function | The type of the result: bool |
binary_negate(const AdaptableBinaryPredicate& pred) | binary_negate | See below. |
template <class AdaptableBinaryPredicate> binary_negate<AdaptableBinaryPredicate> not2(const AdaptableBinaryPredicate& pred); | binary_negate | See below. |
These members are not defined in the Adaptable Binary Predicate requirements, but are specific to
Member | Description |
---|---|
binary_negate(const AdaptableBinaryPredicate& pred) | The constructor. Creates a |
template <class AdaptableBinaryPredicate> binary_negate<AdaptableBinaryPredicate> not2(const AdaptableBinaryPredicate& pred); | If |
The function object overview, AdaptablePredicate, Predicate,