absl::operator<<

Left shift operators

Synopses

Declared in <absl/base/log_severity.h>

Prints a human-readable representation of x to os.

std::ostream&
operator<<(
    std::ostream& os,
    Status const& x);
» more...

Writes the distribution to an output stream.

template<
    typename CharT,
    typename Traits,
    typename IntType>
std::basic_ostream<CharT, Traits>&
operator<<(
    std::basic_ostream<CharT, Traits>& os,
    discrete_distribution<IntType> const& x);
» more...

Writes the distribution to an output stream.

template<
    typename CharT,
    typename Traits,
    typename IntType>
std::basic_ostream<CharT, Traits>&
operator<<(
    std::basic_ostream<CharT, Traits>& os,
    log_uniform_int_distribution<IntType> const& x);
» more...

Writes the distribution to an output stream.

template<
    typename CharT,
    typename Traits,
    typename RealType>
std::basic_ostream<CharT, Traits>&
operator<<(
    std::basic_ostream<CharT, Traits>& os,
    gaussian_distribution<RealType> const& x);
» more...

Writes the distribution to an output stream.

template<
    typename CharT,
    typename Traits,
    typename RealType>
std::basic_ostream<CharT, Traits>&
operator<<(
    std::basic_ostream<CharT, Traits>& os,
    exponential_distribution<RealType> const& x);
» more...

Writes the distribution to an output stream.

template<
    typename CharT,
    typename Traits,
    typename RealType>
std::basic_ostream<CharT, Traits>&
operator<<(
    std::basic_ostream<CharT, Traits>& os,
    beta_distribution<RealType> const& x);
» more...

Writes the distribution to an output stream.

template<
    typename CharT,
    typename Traits>
std::basic_ostream<CharT, Traits>&
operator<<(
    std::basic_ostream<CharT, Traits>& os,
    bernoulli_distribution const& x);
» more...

Writes the distribution to an output stream.

template<
    typename CharT,
    typename Traits,
    typename IntType>
std::basic_ostream<CharT, Traits>&
operator<<(
    std::basic_ostream<CharT, Traits>& os,
    poisson_distribution<IntType> const& x);
» more...

Writes the distribution to an output stream.

template<
    typename CharT,
    typename Traits,
    typename IntType>
std::basic_ostream<CharT, Traits>&
operator<<(
    std::basic_ostream<CharT, Traits>& os,
    uniform_int_distribution<IntType> const& x);
» more...

Writes the distribution to an output stream.

template<
    typename CharT,
    typename Traits,
    typename IntType>
std::basic_ostream<CharT, Traits>&
operator<<(
    std::basic_ostream<CharT, Traits>& os,
    zipf_distribution<IntType> const& x);
» more...

Writes the distribution to an output stream.

template<
    typename CharT,
    typename Traits,
    typename RealType>
std::basic_ostream<CharT, Traits>&
operator<<(
    std::basic_ostream<CharT, Traits>& os,
    uniform_real_distribution<RealType> const& x);
» more...

Implicitly converts builder to Status and writes it to os.

std::ostream&
operator<<(
    std::ostream& os,
    StatusBuilder&& builder);
» more...

Implicitly converts builder to Status and writes it to os.

std::ostream&
operator<<(
    std::ostream& os,
    StatusBuilder const& builder);
» more...

Prints the value or the status in brackets to os.

template<typename T>
requires absl::HasOstreamOperator<T>::value
std::ostream&
operator<<(
    std::ostream& os,
    StatusOr<T> const& status_or);
» more...

The exact representation of a streamed absl::LogSeverity is deliberately unspecified; do not rely on it.

std::ostream&
operator<<(
    std::ostream& os,
    absl::LogSeverity s);
» more...

Streams StatusCodeToString(code) to os.

std::ostream&
operator<<(
    std::ostream& os,
    StatusCode code);
» more...

Writes a Cord to an output stream, allowing a Cord to be logged.

extern
std::ostream&
operator<<(
    std::ostream& out,
    Cord const& cord);
» more...

Stream a CRC32C value as an eight-digit hexadecimal string.

std::ostream&
operator<<(
    std::ostream& os,
    crc32c_t crc);
» more...

Shifts lhs left by the given number of bits.

constexpr
int128
operator<<(
    int128 lhs,
    int amount);
» more...

Shifts lhs left by the given number of bits.

constexpr
uint128
operator<<(
    uint128 lhs,
    int amount);
» more...

Writes the decimal representation of an int128 to an output stream.

std::ostream&
operator<<(
    std::ostream& os,
    int128 v);
» more...

Writes the decimal representation of a uint128 to an output stream.

std::ostream&
operator<<(
    std::ostream& os,
    uint128 v);
» more...

Writes the formatted time to an output stream.

std::ostream&
operator<<(
    std::ostream& os,
    Time t);
» more...

Writes the formatted duration to an output stream.

std::ostream&
operator<<(
    std::ostream& os,
    Duration d);
» more...

Writes the time zone's name to an output stream.

std::ostream&
operator<<(
    std::ostream& os,
    TimeZone tz);
» more...

The exact representation of a streamed absl::LogSeverityAtMost is deliberately unspecified; do not rely on it.

std::ostream&
operator<<(
    std::ostream& os,
    absl::LogSeverityAtMost s);
» more...

The exact representation of a streamed absl::LogSeverityAtLeast is deliberately unspecified; do not rely on it.

std::ostream&
operator<<(
    std::ostream& os,
    absl::LogSeverityAtLeast s);
» more...

Return Value

  • A reference to os.
  • A reference to the output stream.
  • The output stream os.
  • os, after writing the representation of s.
  • A reference to out.
  • The shifted value.

Parameters

NameDescription
osThe output stream to write to.
xThe status to print.
builderThe builder to convert and write.
status_orThe object to print.
sThe severity level to stream.
codeThe status code to stream.
outThe output stream to write to.
cordThe Cord to write.
crcThe value to stream.
lhsThe value to shift.
amountThe number of bit positions to shift.
vThe value to write.
tThe time to write.
dThe duration to write.
tzThe time zone to write.