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
| Category: functors | Component type: type |
struct exponentiate : public binary_function<double, double, double> {
double operator()(double x, double y) { return pow(x, y); }
};
| Parameter | Description | Default |
|---|---|---|
| Arg1 | The function object's first argument type | |
| Arg2 | The function object's second argument type | |
| Result | The function object's result type |
| Member | Where defined | Description |
|---|---|---|
| first_argument_type | unary_function | See below. |
| second_argument_type | unary_function | See below. |
| result_type | unary_function | See below. |
| Member | Description |
|---|---|
| first_argument_type | The function object's first argument type. This is a typedef for the template parameter Arg1. |
| second_argument_type | The function object's second argument type. This is a typedef for the template parameter Arg2. |
| result_type | The function object's result type. This is a typedef for the template parameter Result. |
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.