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::max_size - cpprefjp C++日本語リファレンス

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

最終更新日時: 2024年05月13日 16時11分26秒 (JST)
Akira Takahashi が更新

履歴 編集

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

処理系

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

備考

  • GCCでは14時点でコンパイルエラーになる
    • Bug 115063 - compilation error: std::basic_stracktrace::max_size()
You are visitor 01402503 — 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.