Modulus operators

Synopses

Declared in <folly/json/dynamic.h>

Computes the remainder of dividing two dynamics.

dynamic
operator%(
    dynamic const& a,
    dynamic const& b);

operator%

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

Return Value

  • The remainder.

  • The remainder of dividend / divisor.

Parameters

Name

Description

a

The left‐hand dynamic.

b

The right‐hand dynamic.

dividend

The value to divide.

divisor

The divisor.

Created with MrDocs