最終更新日時(UTC):
が更新

履歴 編集

function
<stacktrace>

std::basic_stacktrace::max_size(C++23)

size_type max_size() const noexcept; // (1) C++23

概要

格納可能な最大の要素数を取得する。

戻り値

保持しているstd::vector<std::stacktrace_entry>型スタックトレースの履歴の、max_size()を返す。

#include <iostream>
#include <stacktrace>

int main() {
  std::stacktrace trace{};
  std::cout << trace.max_size() << std::endl;
}

出力例

288230376151711743

バージョン

言語

  • C++23

処理系