operator==, operator<=>(std::stacktrace_entry)
来自cppreference.com
< cpp | utility | stacktrace entry
诊断库
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::stacktrace_entry
| 成员函数 | ||||
|
(C++23)
|
||||
| 观察器 | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
| 查询 | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
| 非成员函数 | ||||
|
operator==
operator<=> (C++23)(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
| 辅助类 | ||||
|
(C++23)
|
||||
|
(C++23)
|
|
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 的相等性。二个 stacktrace_entry
值相等当且仅当它们表示同一栈踪条目,或均为空。2) 获取
lhs 与
rhs 在的所有 stacktrace_entry
值上的未指定的严格全序中的相对顺序,该序与 operator== 所建立的等价关系一致。这些函数对通常无限定或有限定查找不可见,而只能在
std::stacktrace_entry 为参数的关联类时由实参依赖查找找到。
<、 <=、 >、 >=
及 != 运算符分别从 operator<=> 与
operator== 合成。
参数
| lhs, rhs | - | 要比较的 stacktrace_entry 值
|
返回值
1) 若
lhs 与
rhs 比较相等则为 true ,否则为 false 。2) 若
lhs 与
rhs 比较相等则为 std::strong_ordering::equal 。 否则,若
lhs 在严格全序中顺序先于
rhs 则为 std::strong_ordering::less
。 否则为 std::strong_ordering::greater (该情况下
rhs 在严格全序中顺序先于 lhs )。示例
| 本节未完成 原因:暂无示例 |