| Category: functors | Component type: type |
int main()
{
vector<char*> v1(10, (char*) 0);
vector<int> v2(10, 137);
vector<int> result(10);
transform(v1.begin(), v1.end(), v2.begin(), result.begin(),
project2nd<char*, int>());
assert(equal(v2.begin(), v2.end(), result.begin()));
}
| Parameter | Description | Default |
|---|---|---|
| Arg1 | project2nd's first argument type. | |
| Arg2 | project2nd's second argument type, and its result type. |
| Member | Where defined | Description |
|---|---|---|
| first_argument_type | Adaptable Binary Function | The type of project2nd's first argument: Arg1 |
| second_argument_type | Adaptable Binary Function | The type of project2nd's second argument: Arg2 |
| result_type | Adaptable Binary Function | The type of the result: Arg2. |
| Arg1 operator()(const Arg1&, const Arg2& y) const | Adaptable Binary Function | Function call. The return value is y. |
| Contact Us | Site Map | Trademarks | Privacy | Using this site means you accept its Terms of Use |
| Copyright © 1993-2006 Silicon Graphics, Inc. All rights reserved. |