Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Function safe_dump_to

boost::stacktrace::safe_dump_to — Stores current function call sequence into the memory.

Synopsis

// In header: <boost/stacktrace/safe_dump_to.hpp>


std::size_t safe_dump_to(void * memory, std::size_t size);

Description

Complexity: O(N) where N is call sequence length, O(1) if BOOST_STACKTRACE_USE_NOOP is defined.

Async-Handler-Safety: Theoretically async signal safe .

Parameters:

memory

Preallocated buffer to store current function call sequence into.

size

Size of the preallocated buffer.

Returns:

Stored call sequence depth including terminating zero frame. To get the actually consumed bytes multiply this value by the sizeof(boost::stacktrace::frame::native_frame_ptr_t)


PrevUpHomeNext