Right shift operators

Synopses

Declared in <absl/numeric/int128.h>

Shifts lhs right by the given number of bits.

constexpr
int128
operator>>(
    int128 lhs,
    int amount);

Shifts lhs right by the given number of bits.

constexpr
uint128
operator>>(
    uint128 lhs,
    int amount);

Reads the distribution from an input stream.

template<
    typename CharT,
    typename Traits>
std::basic_istream<CharT, Traits>&
operator>>(
    std::basic_istream<CharT, Traits>& is,
    bernoulli_distribution& x);

Reads the distribution from an input stream.

template<
    typename CharT,
    typename Traits,
    typename RealType>
std::basic_istream<CharT, Traits>&
operator>>(
    std::basic_istream<CharT, Traits>& is,
    beta_distribution<RealType>& x);

Reads the distribution from an input stream.

template<
    typename CharT,
    typename Traits,
    typename IntType>
std::basic_istream<CharT, Traits>&
operator>>(
    std::basic_istream<CharT, Traits>& is,
    discrete_distribution<IntType>& x);

Reads the distribution from an input stream.

template<
    typename CharT,
    typename Traits,
    typename RealType>
std::basic_istream<CharT, Traits>&
operator>>(
    std::basic_istream<CharT, Traits>& is,
    exponential_distribution<RealType>& x);

Reads the distribution from an input stream.

template<
    typename CharT,
    typename Traits,
    typename RealType>
std::basic_istream<CharT, Traits>&
operator>>(
    std::basic_istream<CharT, Traits>& is,
    gaussian_distribution<RealType>& x);

Reads the distribution from an input stream.

template<
    typename CharT,
    typename Traits,
    typename IntType>
std::basic_istream<CharT, Traits>&
operator>>(
    std::basic_istream<CharT, Traits>& is,
    log_uniform_int_distribution<IntType>& x);

Reads the distribution from an input stream.

template<
    typename CharT,
    typename Traits,
    typename IntType>
std::basic_istream<CharT, Traits>&
operator>>(
    std::basic_istream<CharT, Traits>& is,
    poisson_distribution<IntType>& x);

Reads the distribution from an input stream.

template<
    typename CharT,
    typename Traits,
    typename IntType>
std::basic_istream<CharT, Traits>&
operator>>(
    std::basic_istream<CharT, Traits>& is,
    uniform_int_distribution<IntType>& x);

Reads the distribution from an input stream.

template<
    typename CharT,
    typename Traits,
    typename RealType>
std::basic_istream<CharT, Traits>&
operator>>(
    std::basic_istream<CharT, Traits>& is,
    uniform_real_distribution<RealType>& x);

Reads the distribution from an input stream.

template<
    typename CharT,
    typename Traits,
    typename IntType>
std::basic_istream<CharT, Traits>&
operator>>(
    std::basic_istream<CharT, Traits>& is,
    zipf_distribution<IntType>& x);

Return Value

  • The shifted value.

  • A reference to the input stream.

Parameters

Name

Description

lhs

The value to shift.

amount

The number of bit positions to shift.

is

The input stream to read from.

x

The distribution to read into.

Created with MrDocs