struct sine : public unary_function<double, double> { double operator()(double x) { return sin(x); } };Definition Defined in the standard header functional, and in the nonstandard backward-compatibility header function.h. Template parameters Parameter Description Default Arg The function object's argument type Result The function object's result type Model ofAssignable, Default Constructible Type requirements Public base classes None. Members Member Where defined Description argument_type unary_function See below. result_type unary_function See below. New members These members are not defined in the Assignable and Default Constructible requirements, but are specific to unary_function. Member Description argument_type The function object's argument type. This is a typedef for the template parameter Arg. result_type The function object's result type. This is a typedef for the template parameter Result. Notes See also The Function Object overview, Adaptable Unary Function, binary_function STL Main Page
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4