std::basic_stacktrace<Allocator>::current

Let s[i] (0 ≤ i < n) denote the (i+1)-th stacktrace entry in the stacktrace of the current evaluation in the current thread of execution, where n is the count of the stacktrace entries in the stackentry.

# Declarations

static basic_stacktrace current( const allocator_type& alloc =
allocator_type() ) noexcept;

(since C++23)

static basic_stacktrace current( size_type skip, const allocator_type& alloc =
allocator_type() ) noexcept;

(since C++23)

static basic_stacktrace current( size_type skip, size_type max_depth,
const allocator_type& alloc =
allocator_type() ) noexcept;

(since C++23)

# Parameters

# Return value

If the allocation succeeds, the basic_stacktrace described above.

# Example

This section is incompleteReason: no example

# See also