cpp/utility/functional/modulus

Function object for computing remainders of divisions. Implements for type.

Member functions
{{member | {{small|std::modulus::}}operator | 2= {{dcl begin}} {{dcl rev begin}} {{dcl |until=c++14| T operator( const T& lhs, const T& rhs ) const; }} {{dcl |since=c++14| constexpr T operator( const T& lhs, const T& rhs ) const; }} {{dcl rev end}} {{dcl end}}

Returns the remainder of the division of {{tt|lhs}} by {{tt|rhs}}.

Return value
The result of.

Possible implementation
}}