IRIX 6.5 » Books » Developer »
Standard Template Library Programmer's Guide
(document number: 007-3426-004 / published: 1999-05-21)
table of contents | additional info | download
find in page
| Categories: functors, adaptors | Component type: type |
char str[MAXLEN];
...
const char* wptr = find_if(str, str + MAXLEN,
compose2(not2(logical_or<bool>()),
bind2nd(equal_to<char>(), ' '),
bind2nd(equal_to<char>(), '\n')));
assert(wptr == str + MAXLEN || !(*wptr == ' ' || *wptr == '\n'));
| Parameter | Description | Default |
|---|---|---|
| AdaptableBinaryPredicate | The type of the function object that this binary_negate is the logical negation of. |
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: AdaptableBinaryPredicate::first_argument_type |
| second_argument_type | Adaptable Binary Function | The type of the second argument: AdaptableBinaryPredicate::second_argument_type |
| 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. |
| Member | Description |
|---|---|
binary_negate(const AdaptableBinaryPredicate& pred) |
The constructor. Creates a binary_negate<AdaptableBinaryPredicate> whose underlying predicate is pred. |
template <class AdaptableBinaryPredicate> binary_negate<AdaptableBinaryPredicate> not2(const AdaptableBinaryPredicate& pred); |
If p is of type AdaptableBinaryPredicate then not2(p) is equivalent to binary_negate<AdaptableBinaryPredicate>(p), but more convenient. This is a global function, not a member function. |
Standard Template Library Programmer's Guide
(document number: 007-3426-004 / published: 1999-05-21)
table of contents | additional info | download
Copyright © 1993-2007 SGI, Inc. All rights reserved.