Division operators

Synopses

Declared in <absl/numeric/int128.h>

Returns the integer quotient of one duration divided by another.

int64_t
operator/(
    Duration lhs,
    Duration rhs);

Returns the quotient of lhs divided by rhs.

constexpr
int128
operator/(
    int128 lhs,
    int128 rhs);

Returns the quotient of lhs divided by rhs.

constexpr
uint128
operator/(
    uint128 lhs,
    uint128 rhs);

Returns the quotient of a duration divided by a scalar.

template<typename T>
Duration
operator/(
    Duration lhs,
    T rhs);

Return Value

  • The truncated integer quotient lhs / rhs.

  • The quotient lhs / rhs.

Parameters

Name

Description

lhs

The numerator duration.

rhs

The denominator duration.

Created with MrDocs