[#absl-operator_le-06] = xref:absl.adoc[absl]::operator<= :relfileprefix: ../ :mrdocs: Less‐than‐or‐equal operators == Synopses Declared in `<absl/base/log_severity.h>` Compares an `absl::LogSeverityAtLeast` threshold against an `absl::LogSeverity` value (in either operand order). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool xref:absl/operator_le-091.adoc[operator<=]( xref:absl/LogSeverityAtLeast.adoc[absl::LogSeverityAtLeast] lhs, xref:absl/LogSeverity.adoc[absl::LogSeverity] rhs); ---- [.small]#xref:absl/operator_le-091.adoc[_» more..._]# Compares an `absl::LogSeverityAtMost` threshold against an `absl::LogSeverity` value (in either operand order). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool xref:absl/operator_le-08.adoc[operator<=]( xref:absl/LogSeverity.adoc[absl::LogSeverity] lhs, xref:absl/LogSeverityAtMost.adoc[absl::LogSeverityAtMost] rhs); ---- [.small]#xref:absl/operator_le-08.adoc[_» more..._]# Compares two spans lexicographically. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> constexpr bool xref:absl/operator_le-0bf.adoc[operator<=]( xref:absl/Span.adoc[Span<T>] a, xref:absl/Span.adoc[Span<T>] b); ---- [.small]#xref:absl/operator_le-0bf.adoc[_» more..._]# Compares two spans lexicographically. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> constexpr bool xref:absl/operator_le-0d.adoc[operator<=]( xref:absl/Span.adoc[Span<T const>] a, xref:absl/Span.adoc[Span<T>] b); ---- [.small]#xref:absl/operator_le-0d.adoc[_» more..._]# Compares two spans lexicographically. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> constexpr bool xref:absl/operator_le-003.adoc[operator<=]( xref:absl/Span.adoc[Span<T>] a, xref:absl/Span.adoc[Span<T const>] b); ---- [.small]#xref:absl/operator_le-003.adoc[_» more..._]# Compares a container and a span lexicographically. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename U, typename = span_internal::EnableIfConvertibleTo<U, absl::Span<T const>>> constexpr bool xref:absl/operator_le-03.adoc[operator<=]( U const& a, xref:absl/Span.adoc[Span<T>] b); ---- [.small]#xref:absl/operator_le-03.adoc[_» more..._]# Compares a span and a container lexicographically. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename U, typename = span_internal::EnableIfConvertibleTo<U, absl::Span<T const>>> constexpr bool xref:absl/operator_le-0e.adoc[operator<=]( xref:absl/Span.adoc[Span<T>] a, U const& b); ---- [.small]#xref:absl/operator_le-0e.adoc[_» more..._]# Returns whether one duration is less than or equal to another. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool xref:absl/operator_le-075.adoc[operator<=]( xref:absl/Duration.adoc[Duration] lhs, xref:absl/Duration.adoc[Duration] rhs); ---- [.small]#xref:absl/operator_le-075.adoc[_» more..._]# Returns whether one time is earlier than or equal to another. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool xref:absl/operator_le-090.adoc[operator<=]( xref:absl/Time.adoc[Time] lhs, xref:absl/Time.adoc[Time] rhs); ---- [.small]#xref:absl/operator_le-090.adoc[_» more..._]# Determines whether `lhs` is less than or equal to `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool xref:absl/operator_le-01.adoc[operator<=]( xref:absl/uint128.adoc[uint128] lhs, xref:absl/uint128.adoc[uint128] rhs); ---- [.small]#xref:absl/operator_le-01.adoc[_» more..._]# Tests whether the value of an inlined vector is less than or equal to the value of another inlined vector using a lexicographical comparison algorithm. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, size_t N, typename A> bool xref:absl/operator_le-00e1.adoc[operator<=]( xref:absl/InlinedVector.adoc[absl::InlinedVector<T, N, A>] const& a, xref:absl/InlinedVector.adoc[absl::InlinedVector<T, N, A>] const& b); ---- [.small]#xref:absl/operator_le-00e1.adoc[_» more..._]# Returns whether `lhs` orders lexicographically before or equal to `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_le-097.adoc[operator<=]( xref:absl/FixedArray.adoc[FixedArray] const& lhs, xref:absl/FixedArray.adoc[FixedArray] const& rhs); ---- [.small]#xref:absl/operator_le-097.adoc[_» more..._]# Tests whether one Cord is ordered at or before another. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_le-0b5.adoc[operator<=]( xref:absl/Cord.adoc[Cord] const& x, xref:absl/Cord.adoc[Cord] const& y); ---- [.small]#xref:absl/operator_le-0b5.adoc[_» more..._]# Tests whether a Cord is ordered at or before string data. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_le-07a.adoc[operator<=]( xref:absl/Cord.adoc[Cord] const& x, std::string_view y); ---- [.small]#xref:absl/operator_le-07a.adoc[_» more..._]# Tests whether string data is ordered at or before a Cord. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_le-00ea.adoc[operator<=]( std::string_view x, xref:absl/Cord.adoc[Cord] const& y); ---- [.small]#xref:absl/operator_le-00ea.adoc[_» more..._]# Orders two iterators by position. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_le-093.adoc[operator<=]( Iter const& a, Iter const& b); ---- [.small]#xref:absl/operator_le-093.adoc[_» more..._]# == Return Value * `true` if the comparison holds, `false` otherwise. * `true` if `a` is not lexicographically greater than `b`. * `true` if `lhs` is less than or equal to `rhs`. * `true` if `lhs` is earlier than or equal to `rhs`. * `true` if `lhs` is less than or equal to `rhs`; `false` otherwise. * `true` if `a` is less than or equal to `b`, `false` otherwise. * `true` if `lhs` is not lexicographically greater than `rhs`. * `true` if `x` is not greater than `y`. * `true` if `a` does not follow `b`. == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | The left‐hand operand. | *rhs* | The right‐hand operand. | *a* | The left operand. | *b* | The right operand. | *x* | The left‐hand Cord. | *y* | The right‐hand Cord. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#