diff --git a/BOOST_STACKTRACE_DEFAULT_MAX_DEPTH.html b/BOOST_STACKTRACE_DEFAULT_MAX_DEPTH.html new file mode 100644 index 0000000..9d2fa8f --- /dev/null +++ b/BOOST_STACKTRACE_DEFAULT_MAX_DEPTH.html @@ -0,0 +1,54 @@ + +
+ +![]() |
+Home | +Libraries | +People | +FAQ | +More | +
BOOST_STACKTRACE_DEFAULT_MAX_DEPTH
+// In header: <boost/stacktrace/stacktrace.hpp>
+
+BOOST_STACKTRACE_DEFAULT_MAX_DEPTHYou may define this macro to some positive integer to limit the max stack frames count for the boost::stacktrace::stacktrace class. This macro does not affect the boost::stacktrace::basic_stacktrace.
+Default: 100
+| + | + |
![]() |
+Home | +Libraries | +People | +FAQ | +More | +
boost::stacktrace::basic_stacktrace
+// In header: <boost/stacktrace/stacktrace.hpp> + +template<std::size_t Depth> +class basic_stacktrace { +public: + // types + typedef frame reference; + typedef boost::stacktrace::const_iterator iterator; + typedef boost::stacktrace::const_iterator const_iterator; + typedef std::reverse_iterator< iterator > reverse_iterator; + typedef std::reverse_iterator< const_iterator > const_reverse_iterator; + + // construct/copy/destruct + basic_stacktrace() noexcept; + basic_stacktrace(const basic_stacktrace &) noexcept; + basic_stacktrace & operator=(const basic_stacktrace &) noexcept; + ~basic_stacktrace(); + + // public member functions + std::size_t size() const noexcept; + frame operator[](std::size_t) const noexcept; + const_iterator begin() const noexcept; + const_iterator cbegin() const noexcept; + const_iterator end() const noexcept; + const_iterator cend() const noexcept; + const_reverse_iterator rbegin() const noexcept; + const_reverse_iterator crbegin() const noexcept; + const_reverse_iterator rend() const noexcept; + const_reverse_iterator crend() const noexcept; + explicit operator bool() const noexcept; + bool empty() const noexcept; + bool operator<(const basic_stacktrace &) const noexcept; + bool operator==(const basic_stacktrace &) const noexcept; + std::size_t hash_code() const noexcept; + + // public data members + static constexpr std::size_t max_depth; // Max stack frames count that this class may hold. Equal to Depth template parameter. +};
Class that on construction copies minimal information about call stack into its internals and provides access to that information. +
+std::size_t Depth+
Max stack frames count that this class may hold. Equal to basic_stacktrace::max_depth.
+basic_stacktrace
+ public
+ construct/copy/destructbasic_stacktrace() noexcept;Stores the current function call sequence inside the class.
Complexity: O(N) where N is call sequence length, O(1) for noop backend.
+Async-Handler-Safety: Depends on backend, see "Build, Macros and Backends" section.
+basic_stacktrace(const basic_stacktrace & st) noexcept;+
Complexity: O(st.size())
+Async-Handler-Safety: Safe.
+basic_stacktrace & operator=(const basic_stacktrace & st) noexcept;+
Complexity: O(st.size())
+Async-Handler-Safety: Safe.
+~basic_stacktrace();+
Complexity: O(1)
+Async-Handler-Safety: Safe.
+basic_stacktrace public member functionsstd::size_t size() const noexcept;+
+Complexity: O(1)
+Async-Handler-Safety: Safe.
+Returns: |
+Number of function names stored inside the class. |
+
frame operator[](std::size_t frame_no) const noexcept;+
+ +Complexity: Amortized O(1), O(1) for noop backend.
+Async-Handler-Safety: Safe.
+Parameters: |
+
|
+||
Returns: |
+frame that references the actual frame info, stored inside *this. |
+
const_iterator begin() const noexcept;+
Complexity: O(1)
+Async-Handler-Safety: Safe.
+const_iterator cbegin() const noexcept;+
Complexity: O(1)
+Async-Handler-Safety: Safe.
+const_iterator end() const noexcept;+
Complexity: O(1)
+Async-Handler-Safety: Safe.
+const_iterator cend() const noexcept;+
Complexity: O(1)
+Async-Handler-Safety: Safe.
+const_reverse_iterator rbegin() const noexcept;+
Complexity: O(1)
+Async-Handler-Safety: Safe.
+const_reverse_iterator crbegin() const noexcept;+
Complexity: O(1)
+Async-Handler-Safety: Safe.
+const_reverse_iterator rend() const noexcept;+
Complexity: O(1)
+Async-Handler-Safety: Safe.
+const_reverse_iterator crend() const noexcept;+
Complexity: O(1)
+Async-Handler-Safety: Safe.
+explicit operator bool() const noexcept;Allows to check that stack trace capturing was successful.
+Complexity: O(1)
+Async-Handler-Safety: Safe.
+Returns: |
+
|
+
bool empty() const noexcept;Allows to check that stack trace failed.
+Complexity: O(1)
+Async-Handler-Safety: Safe.
+Returns: |
+
|
+
bool operator<(const basic_stacktrace & rhs) const noexcept;Compares stacktraces for less, order is platform dependant.
Complexity: Amortized O(1); worst case O(size())
+Async-Handler-Safety: Safe.
+bool operator==(const basic_stacktrace & rhs) const noexcept;Compares stacktraces for equality.
Complexity: Amortized O(1); worst case O(size())
+Async-Handler-Safety: Safe.
+std::size_t hash_code() const noexcept;Returns hashed code of the stacktrace.
Complexity: O(1)
+Async-Handler-Safety: Safe.
+| + | + |