Namespaces
Variants

operator==, operator<=> (std::stacktrace_entry)

From cppreference.net
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 간의 상대적 순서를 operator== 에 의해 확립된 동등 관계와 일관된 모든 stacktrace_entry 값들에 대한 비지정된 엄밀 전순서에서 얻습니다.

이 함수들은 일반적인 unqualified 또는 qualified lookup 으로는 보이지 않으며, std::stacktrace_entry가 인자들의 associated class일 때에만 argument-dependent lookup 을 통해서만 찾을 수 있습니다.

< , <= , > , >= , 그리고 != 연산자는 각각 합성됩니다 operator <=> operator == 로부터.

매개변수

lhs, rhs - stacktrace_entry 비교할 값들

반환값

1) true 만약 두 개의 lhs rhs 가 동일하게 비교되면, false 그렇지 않으면.
2) std::strong_ordering::equal 만약 lhs rhs 가 동일하게 비교되는 경우.
그렇지 않으면, std::strong_ordering::less 만약 lhs 가 엄격한 전체 순서에서 rhs 보다 앞서 정렬된 경우.
그렇지 않으면, std::strong_ordering::greater (이 경우 rhs lhs 보다 엄격한 전체 순서에서 앞서 정렬됩니다).

예제