std::modulus

From Cppreference

Jump to: navigation, search
Defined in header <functional>

template< class T >
struct modulus;

Function object for computing remainders of divisions.

[edit] Member types

type definition
result_type T
first_argument_type T
second_argument_type T

[edit] Member functions

Returns the remainder from the division of its first argument by its second argument
(public member function)