Name

modulus class template — Binary functional for modulus (remainder)

Synopsis

template <typename T>
struct modulus : binary_function<T, T, T> {
  T operator(  )(const T& x, const T& y) const;
};

The modulus class template is a binary functional in which operator( ) returns x % y.