Wednesday, June 30, 2010

Predefined Function Objects

The following are predefined C++ function objects:
        negate<type>()
        plus<type>()
        minus<type>()
        multiplies<type>()
        divides<type>()
        modulus<type>()
        equal_to<type>()
        not_equal_to<type>()
        less<type>()
        greater<type>()
        less_equal<type>()
        greater_equal<type>()
        logical_not<type>()
        logical_and<type>()
        logical_or<type>()

Reference: The C++ Standard Library: A Tutorial and Reference by Nicolas M. Josuttis. Addison-Wesley, 1999, p. 305.

No comments:

Post a Comment