- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3.3k
functional
        Junyan Liu edited this page Aug 16, 2017 
        ·
        3 revisions
      
    仿函数,现在称为函数对象,定义在 functional.h 中。 
- 算术类
- plus
- minus
- multiplies
- divides
- modulus
- negate
- identity_element
 
- 关系运算类
- equal_to
- not_equal_to
- greater
- less
- greater_equal
- less_equal
 
- 逻辑运算类
- logical_and
- logical_or
- logical_not
 
- 证同、选择、投影
- identity
- selectfirst
- selectsecond
- projectfirst
- projectsecond
 
mystl::hash 函数对象用于计算元素的哈希值(在哈希表中的位置),对一些内置型别和容器做了特化处理。