folly::operator%=

operator%=

Synopsis

Declared in <folly/math/Division.h>

template<typename Word>
constexpr
Word&
operator%=(
    Word& dividend,
    uint_divisor<Word> const& divisor);

Description

Replaces dividend with the remainder of dividend / divisor and returns a reference to it.

Return Value

A reference to dividend.

Parameters

NameDescription
dividendThe value to replace with the remainder.
divisorThe divisor.