libstdc++
Arithmetic Classes
Collaboration diagram for Arithmetic Classes:

Classes

struct  std::divides< _Tp >
 One of the math functors. More...
struct  std::minus< _Tp >
 One of the math functors. More...
struct  std::modulus< _Tp >
 One of the math functors. More...
struct  std::multiplies< _Tp >
 One of the math functors. More...
struct  std::negate< _Tp >
 One of the math functors. More...
struct  std::plus< _Tp >
 One of the math functors. More...

Detailed Description

Because basic math often needs to be done during an algorithm, the library provides functors for those operations. See the documentation for the base classes for examples of their use.