GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||
GeezerVison is showing cplusplus.com — std::binary_function Reference
<functional>
class template
<functional>
std::binary_functiontemplate <class Arg1, class Arg2, class Result> struct binary_function; template <class Arg1, class Arg2, class Result> struct binary_function; // deprecated Binary function object base class
This is a base class for standard binary function objects. Generically, function objects are instances of a class with member function operator() defined. This member function allows the object to be used with the same syntax as a regular function call, and therefore its type can be used as template parameter when a generic function type is expected.In the case of binary function objects, this operator() member function takes two parameters.binary_function is just a base class, from which specific binary function objects are derived. It has no operator() member defined (which derived classes are expected to define) - it simply has three public data members that are typedefs of the template parameters. It is defined as:
Members
Example
Possible output:
See also
Home page | Privacy policy
© cplusplus.com, 2000-2026 - All rights reserved - v3.3.4s Spotted an error? contact us | |||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |