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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
Implicitly converts builder to Status and writes it to os.
std::ostream&
operator<<(
std::ostream& os,
StatusBuilder&& builder);
Implicitly converts builder to Status and writes it to os.
std::ostream&
operator<<(
std::ostream& os,
StatusBuilder const& builder);
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);
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);
Streams StatusCodeToString(code) to os.
std::ostream&
operator<<(
std::ostream& os,
StatusCode code);
Writes a Cord to an output stream, allowing a Cord to be logged.
extern
std::ostream&
operator<<(
std::ostream& out,
Cord const& cord);
Stream a CRC32C value as an eight‐digit hexadecimal string.
std::ostream&
operator<<(
std::ostream& os,
crc32c_t crc);
Shifts lhs left by the given number of bits.
constexpr
int128
operator<<(
int128 lhs,
int amount);
Shifts lhs left by the given number of bits.
constexpr
uint128
operator<<(
uint128 lhs,
int amount);
Writes the decimal representation of an int128 to an output stream.
std::ostream&
operator<<(
std::ostream& os,
int128 v);
Writes the decimal representation of a uint128 to an output stream.
std::ostream&
operator<<(
std::ostream& os,
uint128 v);
Writes the formatted time to an output stream.
std::ostream&
operator<<(
std::ostream& os,
Time t);
Writes the formatted duration to an output stream.
std::ostream&
operator<<(
std::ostream& os,
Duration d);
Writes the time zone's name to an output stream.
std::ostream&
operator<<(
std::ostream& os,
TimeZone tz);
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);
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);
Return Value
-
A reference to
os. -
A reference to the output stream.
-
The output stream
os. -
os, after writing the representation ofs. -
A reference to
out. -
The shifted value.
Parameters
Name |
Description |
os |
The output stream to write to. |
x |
The status to print. |
builder |
The builder to convert and write. |
status_or |
The object to print. |
s |
The severity level to stream. |
code |
The status code to stream. |
out |
The output stream to write to. |
cord |
The Cord to write. |
crc |
The value to stream. |
lhs |
The value to shift. |
amount |
The number of bit positions to shift. |
v |
The value to write. |
t |
The time to write. |
d |
The duration to write. |
tz |
The time zone to write. |
Created with MrDocs