GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • cpprefjp - C++日本語リファレンス
  • GitHub Project

This view

  • Original page
  • New address

GeezerVison is showing cpprefjp.github.io — std::basic_stacktrace::operator== - cpprefjp C++日本語リファレンス

  1. リファレンス
  2. stacktrace
  3. basic_stacktrace
  4. operator==

最終更新日時: 2024年06月11日 22時45分38秒 (JST)
Akira Takahashi が更新

履歴 編集

function
<stacktrace>

std::basic_stacktrace::operator==(C++23)

template <class Allocator2>
friend bool operator==(const basic_stacktrace& x,
                       const basic_stacktrace<Allocator2>& y) noexcept;

概要

basic_stacktrace同士の等値比較を行う。

戻り値

return equal(x.begin(), x.end(), y.begin(), y.end());

備考

  • この演算子により、operator!=が使用可能になる

例

#include <cassert>
#include <stacktrace>

void g() {
  std::stacktrace a = std::stacktrace::current();
  std::stacktrace b = std::stacktrace::current();
  std::stacktrace c = a;

  assert(a == c);
  assert(a != b);
}

void f() {
  g();
}

int main() {
  f();
}

出力

バージョン

言語

  • C++23

処理系

  • Clang: ??
  • GCC: 12 ✅
  • Visual C++: ??

関連項目

  • Hidden Friends
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.