MCPcopy Create free account
hub / github.com/boostorg/stacktrace / to_string

Function to_string

include/boost/stacktrace/stacktrace.hpp:468–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466/// Returns std::string with the stacktrace in a human readable format; unsafe to use in async handlers.
467template <class Allocator>
468std::string to_string(const basic_stacktrace<Allocator>& bt) {
469 if (!bt) {
470 return std::string();
471 }
472
473 return boost::stacktrace::detail::to_string(&bt.as_vector()[0], bt.size());
474}
475
476/// Outputs stacktrace in a human readable format to the output stream `os`; unsafe to use in async handlers.
477template <class CharT, class TraitsT, class Allocator>

Callers 11

test_rethrowFunction · 0.85
test_nestedFunction · 0.85
test_rethrow_nestedFunction · 0.85
test_from_other_threadFunction · 0.85
frame.hppFile · 0.85
stacktrace.hppFile · 0.85

Calls

no outgoing calls

Tested by 9

test_rethrowFunction · 0.68
test_nestedFunction · 0.68
test_rethrow_nestedFunction · 0.68
test_from_other_threadFunction · 0.68