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).
constexpr
bool
operator<=(
absl::LogSeverityAtLeast lhs,
absl::LogSeverity rhs);
Compares an absl::LogSeverityAtMost threshold against an absl::LogSeverity value (in either operand order).
constexpr
bool
operator<=(
absl::LogSeverity lhs,
absl::LogSeverityAtMost rhs);
Compares two spans lexicographically.
template<typename T>
constexpr
bool
operator<=(
Span<T> a,
Span<T> b);
Compares two spans lexicographically.
template<typename T>
constexpr
bool
operator<=(
Span<T const> a,
Span<T> b);
Compares two spans lexicographically.
template<typename T>
constexpr
bool
operator<=(
Span<T> a,
Span<T const> b);
Compares a container and a span lexicographically.
template<
typename T,
typename U,
typename = span_internal::EnableIfConvertibleTo<U, absl::Span<T const>>>
constexpr
bool
operator<=(
U const& a,
Span<T> b);
Compares a span and a container lexicographically.
template<
typename T,
typename U,
typename = span_internal::EnableIfConvertibleTo<U, absl::Span<T const>>>
constexpr
bool
operator<=(
Span<T> a,
U const& b);
Returns whether one duration is less than or equal to another.
constexpr
bool
operator<=(
Duration lhs,
Duration rhs);
Returns whether one time is earlier than or equal to another.
constexpr
bool
operator<=(
Time lhs,
Time rhs);
Determines whether lhs is less than or equal to rhs.
constexpr
bool
operator<=(
uint128 lhs,
uint128 rhs);
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.
template<
typename T,
size_t N,
typename A>
bool
operator<=(
absl::InlinedVector<T, N, A> const& a,
absl::InlinedVector<T, N, A> const& b);
Returns whether lhs orders lexicographically before or equal to rhs.
bool
operator<=(
FixedArray const& lhs,
FixedArray const& rhs);
Tests whether one Cord is ordered at or before another.
bool
operator<=(
Cord const& x,
Cord const& y);
Tests whether a Cord is ordered at or before string data.
bool
operator<=(
Cord const& x,
std::string_view y);
Tests whether string data is ordered at or before a Cord.
bool
operator<=(
std::string_view x,
Cord const& y);
Orders two iterators by position.
bool
operator<=(
Iter const& a,
Iter const& b);
Return Value
-
trueif the comparison holds,falseotherwise. -
trueifais not lexicographically greater thanb. -
trueiflhsis less than or equal torhs. -
trueiflhsis earlier than or equal torhs. -
trueiflhsis less than or equal torhs;falseotherwise. -
trueifais less than or equal tob,falseotherwise. -
trueiflhsis not lexicographically greater thanrhs. -
trueifxis not greater thany. -
trueifadoes not followb.
Parameters
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. |
Created with MrDocs