Category: functors | Component type: type |
char str[MAXLEN]; ... const char* wptr = find_if(str, str + MAXLEN, compose2(logical_or<bool>(), bind2nd(equal_to<char>(), ' '), bind2nd(equal_to<char>(), '\n'))); assert(wptr == str + MAXLEN || *wptr == ' ' || *wptr == '\n');
Parameter | Description | Default |
---|---|---|
T | The type of logical_or's arguments |
Member | Where defined | Description |
---|---|---|
first_argument_type | Adaptable Binary Function | The type of the first argument: T |
second_argument_type | Adaptable Binary Function | The type of the second argument: T |
result_type | Adaptable Binary Function | The type of the result: bool |
bool operator()(const T& x, const T& y) const | Binary Function | Function call operator. The return value is x || y. |
logical_or() | Default Constructible | The default constructor. |
[1] Logical_and and logical_or are not very useful by themselves. They are mainly useful because, when combined with the function object adaptor binary_compose, they perform logical operations on other function objects.
Contact Us | Site Map | Trademarks | Privacy | Using this site means you accept its Terms of Use |
Copyright © 2009 - 2014 Silicon Graphics International. All rights reserved. |