Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

      From cppreference.com
      <cpp‎ |utility‎ |stacktrace entry
       
       
      Diagnostics library
       
       
      friendconstexprbool operator==(const stacktrace_entry& lhs,
                                       const stacktrace_entry& rhs)noexcept;
      (1)(since C++23)
      friendconstexprstd::strong_ordering
          operator<=>(const stacktrace_entry& lhs,const stacktrace_entry& rhs)noexcept;
      (2)(since C++23)
      1) Compareslhs andrhs for equality. Twostacktrace_entry values are equal if and only if they represent the same stacktrace entry, or both of them are empty.
      2) Gets the relative order betweenlhs andrhs in the unspecified strict total order over allstacktrace_entry values which is consistent with the equality relation established byoperator==.

      These functions are not visible to ordinaryunqualified orqualified lookup, and can only be found byargument-dependent lookup when std::stacktrace_entry is an associated class of the arguments.

      The<,<=,>,>=, and!= operators aresynthesized fromoperator<=> andoperator== respectively.

      [edit]Parameters

      lhs, rhs -stacktrace_entry values to compare

      [edit]Return value

      1)true if twolhs andrhs compare equal,false otherwise.
      2)std::strong_ordering::equal iflhs andrhs compare equal.
      Otherwise,std::strong_ordering::less iflhs is ordered beforerhs in the strict total order.
      Otherwise,std::strong_ordering::greater (in which caserhs is ordered beforelhs in the strict total order).

      [edit]Example

      This section is incomplete
      Reason: no example
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/utility/stacktrace_entry/operator_cmp&oldid=160686"

      [8]ページ先頭

      ©2009-2025 Movatter.jp