Node:Logical operations, Previous:Comparisons, Up:Function objects
| logical_and |
Binary Predicate |
| logical_or |
Binary Predicate |
| logical_not |
Binary Predicate |
templatestruct logical_and : binary_function { bool operator()(const T& x, const T& y) const { return x && y; } }; template struct logical_or : binary_function { bool operator()(const T& x, const T& y) const { return x || y; } }; template struct logical_not : unary_function { bool operator()(const T& x) const { return !x; } };