operator==, operator<=> (std::stacktrace_entry)
From cppreference.net
<
cpp
|
utility
|
stacktrace entry
|
friend
constexpr
bool
operator
==
(
const
stacktrace_entry
&
lhs,
const stacktrace_entry & rhs ) noexcept ; |
(1) | (C++23以降) |
|
friend
constexpr
std::
strong_ordering
operator <=> ( const stacktrace_entry & lhs, const stacktrace_entry & rhs ) noexcept ; |
(2) | (C++23以降) |
1)
lhs
と
rhs
の等値性を比較します。2つの
stacktrace_entry
値は、同じスタックトレースエントリを表す場合、または両方が空の場合にのみ等しくなります。
2)
すべての
stacktrace_entry
値に対する未規定の厳密全順序において、
lhs
と
rhs
の相対的な順序関係を取得します。この順序は
operator==
によって確立された等価関係と整合性があります。
これらの関数は通常の unqualified lookup または qualified lookup では可視化されず、引数の関連クラスとしてstd::stacktrace_entryが指定されている場合にのみ argument-dependent lookup によって発見されます。
<
、
<=
、
>
、
>=
、および
!=
演算子は、
それぞれ
operator
<=>
および
operator
==
から合成されます。
パラメータ
| lhs, rhs | - |
stacktrace_entry
を比較する値
|
戻り値
1)
true
2つの
lhs
と
rhs
が等しい場合に
true
を返し、それ以外の場合に
false
を返す。
2)
std::strong_ordering::equal
if
lhs
and
rhs
が等しい場合。
それ以外の場合、
std::strong_ordering::less
が返されるのは、
lhs
が厳密な全順序において
rhs
より前に順序付けられる場合である。
それ以外の場合、
std::strong_ordering::greater
(この場合、厳密な全順序では
rhs
が
lhs
より前に順序付けられる)。
例
|
このセクションは不完全です
理由: 例がありません |