F A type that is a model of Predicate
X The argument type of
f Object of type
x Object of type
| Name | Expression | Return type |
|---|---|---|
| Function call | f(x) | Convertible to |
| Name | Expression | Precondition | Semantics | Postcondition |
|---|---|---|---|---|
| Function call | f(x) | Returns | The result is either |
• bool (*)(int)
Adaptable Predicate, Binary Predicate, Adaptable Binary Predicate
Binary Predicate
Category: functors
Component type: concept
A Binary Predicate is a Binary Function whose result represents the truth or falsehood of some condition. A Binary Predicate might, for example, be a function that takes two arguments and tests whether they are equal.
Binary Function
| Result type | The type returned when the Binary Predicate is called. The result type must be convertible to |
F A type that is a model of Binary Predicate
X The first argument type of
Y The second argument type of
f Object of type
x Object of type
y Object of type
| Name | Expression | Return type |
|---|---|---|
| Function call | f(x,y) | Convertible to |
| Name | Expression | Precondition | Semantics | Postcondition |
|---|---|---|---|---|
| Function call | f(x,y) | The ordered pair | Returns | The result is either |
Вы читаете Standard Template Library Programmer's Guide
