[#absl-operator_lshift-03b] = xref:absl.adoc[absl]::operator<< :relfileprefix: ../ :mrdocs: Left shift operators == Synopses Declared in `<absl/base/log_severity.h>` Prints a human‐readable representation of `x` to `os`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::ostream& xref:absl/operator_lshift-0ecf.adoc[operator<<]( std::ostream& os, xref:absl/Status.adoc[Status] const& x); ---- [.small]#xref:absl/operator_lshift-0ecf.adoc[_» more..._]# Writes the distribution to an output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename CharT, typename Traits, typename IntType> std::basic_ostream<CharT, Traits>& xref:absl/operator_lshift-0d4.adoc[operator<<]( std::basic_ostream<CharT, Traits>& os, xref:absl/discrete_distribution.adoc[discrete_distribution<IntType>] const& x); ---- [.small]#xref:absl/operator_lshift-0d4.adoc[_» more..._]# Writes the distribution to an output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename CharT, typename Traits, typename IntType> std::basic_ostream<CharT, Traits>& xref:absl/operator_lshift-03c.adoc[operator<<]( std::basic_ostream<CharT, Traits>& os, xref:absl/log_uniform_int_distribution.adoc[log_uniform_int_distribution<IntType>] const& x); ---- [.small]#xref:absl/operator_lshift-03c.adoc[_» more..._]# Writes the distribution to an output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename CharT, typename Traits, typename RealType> std::basic_ostream<CharT, Traits>& xref:absl/operator_lshift-025.adoc[operator<<]( std::basic_ostream<CharT, Traits>& os, xref:absl/gaussian_distribution.adoc[gaussian_distribution<RealType>] const& x); ---- [.small]#xref:absl/operator_lshift-025.adoc[_» more..._]# Writes the distribution to an output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename CharT, typename Traits, typename RealType> std::basic_ostream<CharT, Traits>& xref:absl/operator_lshift-0db.adoc[operator<<]( std::basic_ostream<CharT, Traits>& os, xref:absl/exponential_distribution.adoc[exponential_distribution<RealType>] const& x); ---- [.small]#xref:absl/operator_lshift-0db.adoc[_» more..._]# Writes the distribution to an output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename CharT, typename Traits, typename RealType> std::basic_ostream<CharT, Traits>& xref:absl/operator_lshift-023.adoc[operator<<]( std::basic_ostream<CharT, Traits>& os, xref:absl/beta_distribution.adoc[beta_distribution<RealType>] const& x); ---- [.small]#xref:absl/operator_lshift-023.adoc[_» more..._]# Writes the distribution to an output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename CharT, typename Traits> std::basic_ostream<CharT, Traits>& xref:absl/operator_lshift-022.adoc[operator<<]( std::basic_ostream<CharT, Traits>& os, xref:absl/bernoulli_distribution.adoc[bernoulli_distribution] const& x); ---- [.small]#xref:absl/operator_lshift-022.adoc[_» more..._]# Writes the distribution to an output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename CharT, typename Traits, typename IntType> std::basic_ostream<CharT, Traits>& xref:absl/operator_lshift-07a.adoc[operator<<]( std::basic_ostream<CharT, Traits>& os, xref:absl/poisson_distribution.adoc[poisson_distribution<IntType>] const& x); ---- [.small]#xref:absl/operator_lshift-07a.adoc[_» more..._]# Writes the distribution to an output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename CharT, typename Traits, typename IntType> std::basic_ostream<CharT, Traits>& xref:absl/operator_lshift-0b7.adoc[operator<<]( std::basic_ostream<CharT, Traits>& os, xref:absl/uniform_int_distribution.adoc[uniform_int_distribution<IntType>] const& x); ---- [.small]#xref:absl/operator_lshift-0b7.adoc[_» more..._]# Writes the distribution to an output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename CharT, typename Traits, typename IntType> std::basic_ostream<CharT, Traits>& xref:absl/operator_lshift-008.adoc[operator<<]( std::basic_ostream<CharT, Traits>& os, xref:absl/zipf_distribution.adoc[zipf_distribution<IntType>] const& x); ---- [.small]#xref:absl/operator_lshift-008.adoc[_» more..._]# Writes the distribution to an output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename CharT, typename Traits, typename RealType> std::basic_ostream<CharT, Traits>& xref:absl/operator_lshift-0a.adoc[operator<<]( std::basic_ostream<CharT, Traits>& os, xref:absl/uniform_real_distribution.adoc[uniform_real_distribution<RealType>] const& x); ---- [.small]#xref:absl/operator_lshift-0a.adoc[_» more..._]# Implicitly converts `builder` to `Status` and writes it to `os`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::ostream& xref:absl/operator_lshift-0e0.adoc[operator<<]( std::ostream& os, xref:absl/StatusBuilder.adoc[StatusBuilder]&& builder); ---- [.small]#xref:absl/operator_lshift-0e0.adoc[_» more..._]# Implicitly converts `builder` to `Status` and writes it to `os`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::ostream& xref:absl/operator_lshift-079.adoc[operator<<]( std::ostream& os, xref:absl/StatusBuilder.adoc[StatusBuilder] const& builder); ---- [.small]#xref:absl/operator_lshift-079.adoc[_» more..._]# Prints the `value` or the status in brackets to `os`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> requires absl::HasOstreamOperator<T>::value std::ostream& xref:absl/operator_lshift-0ca.adoc[operator<<]( std::ostream& os, xref:absl/StatusOr.adoc[StatusOr<T>] const& status_or); ---- [.small]#xref:absl/operator_lshift-0ca.adoc[_» more..._]# The exact representation of a streamed `absl::LogSeverity` is deliberately unspecified; do not rely on it. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::ostream& xref:absl/operator_lshift-03f.adoc[operator<<]( std::ostream& os, xref:absl/LogSeverity.adoc[absl::LogSeverity] s); ---- [.small]#xref:absl/operator_lshift-03f.adoc[_» more..._]# Streams StatusCodeToString(code) to `os`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::ostream& xref:absl/operator_lshift-0c2.adoc[operator<<]( std::ostream& os, xref:absl/StatusCode.adoc[StatusCode] code); ---- [.small]#xref:absl/operator_lshift-0c2.adoc[_» more..._]# Writes a Cord to an output stream, allowing a Cord to be logged. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- extern std::ostream& xref:absl/operator_lshift-0cc.adoc[operator<<]( std::ostream& out, xref:absl/Cord.adoc[Cord] const& cord); ---- [.small]#xref:absl/operator_lshift-0cc.adoc[_» more..._]# Stream a CRC32C value as an eight‐digit hexadecimal string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::ostream& xref:absl/operator_lshift-0d2.adoc[operator<<]( std::ostream& os, xref:absl/crc32c_t.adoc[crc32c_t] crc); ---- [.small]#xref:absl/operator_lshift-0d2.adoc[_» more..._]# Shifts `lhs` left by the given number of bits. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:absl/int128.adoc[int128] xref:absl/operator_lshift-06e.adoc[operator<<]( xref:absl/int128.adoc[int128] lhs, int amount); ---- [.small]#xref:absl/operator_lshift-06e.adoc[_» more..._]# Shifts `lhs` left by the given number of bits. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:absl/uint128.adoc[uint128] xref:absl/operator_lshift-024.adoc[operator<<]( xref:absl/uint128.adoc[uint128] lhs, int amount); ---- [.small]#xref:absl/operator_lshift-024.adoc[_» more..._]# Writes the decimal representation of an `int128` to an output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::ostream& xref:absl/operator_lshift-009.adoc[operator<<]( std::ostream& os, xref:absl/int128.adoc[int128] v); ---- [.small]#xref:absl/operator_lshift-009.adoc[_» more..._]# Writes the decimal representation of a `uint128` to an output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::ostream& xref:absl/operator_lshift-003.adoc[operator<<]( std::ostream& os, xref:absl/uint128.adoc[uint128] v); ---- [.small]#xref:absl/operator_lshift-003.adoc[_» more..._]# Writes the formatted time to an output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::ostream& xref:absl/operator_lshift-0e9.adoc[operator<<]( std::ostream& os, xref:absl/Time.adoc[Time] t); ---- [.small]#xref:absl/operator_lshift-0e9.adoc[_» more..._]# Writes the formatted duration to an output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::ostream& xref:absl/operator_lshift-0b4.adoc[operator<<]( std::ostream& os, xref:absl/Duration.adoc[Duration] d); ---- [.small]#xref:absl/operator_lshift-0b4.adoc[_» more..._]# Writes the time zone's name to an output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::ostream& xref:absl/operator_lshift-032.adoc[operator<<]( std::ostream& os, xref:absl/TimeZone.adoc[TimeZone] tz); ---- [.small]#xref:absl/operator_lshift-032.adoc[_» more..._]# The exact representation of a streamed `absl::LogSeverityAtMost` is deliberately unspecified; do not rely on it. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::ostream& xref:absl/operator_lshift-0ec2.adoc[operator<<]( std::ostream& os, xref:absl/LogSeverityAtMost.adoc[absl::LogSeverityAtMost] s); ---- [.small]#xref:absl/operator_lshift-0ec2.adoc[_» more..._]# The exact representation of a streamed `absl::LogSeverityAtLeast` is deliberately unspecified; do not rely on it. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::ostream& xref:absl/operator_lshift-062.adoc[operator<<]( std::ostream& os, xref:absl/LogSeverityAtLeast.adoc[absl::LogSeverityAtLeast] s); ---- [.small]#xref:absl/operator_lshift-062.adoc[_» 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 [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#