friend constexpr bool operator==( const stacktrace_entry& lhs, const stacktrace_entry& rhs ) noexcept; | (1) | (since C++23) |
friend constexpr std::strong_ordering operator<=>( const stacktrace_entry& lhs, const stacktrace_entry& rhs ) noexcept; | (2) | (since C++23) |
lhs
and rhs
for equality. Two stacktrace_entry
values are equal if and only if they represent the same stacktrace entry, or both of them are empty.lhs
and rhs
in the unspecified strict total order over all stacktrace_entry
values which is consistent with the equality relation established by operator==
.These functions are not visible to ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when std::stacktrace_entry
is an associated class of the arguments.
The <
, <=
, >
, >=
, and !=
operators are synthesized from operator<=> and operator== respectively.
lhs, rhs | - | stacktrace_entry values to compare |
true
if two lhs
and rhs
compare equal, false
otherwise.std::strong_ordering::equal
if lhs
and rhs
compare equal.std::strong_ordering::less
if lhs
is ordered before rhs
in the strict total order.std::strong_ordering::greater
(in which case rhs
is ordered before lhs
in the strict total order).
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/utility/stacktrace_entry/operator_cmp