Files
2025-10-25 03:02:53 +03:00

2.2 KiB

[stacktrace.basic.nonmem]

19 Diagnostics library [diagnostics]

19.6 Stacktrace [stacktrace]

19.6.4 Class template basic_stacktrace [stacktrace.basic]

19.6.4.6 Non-member functions [stacktrace.basic.nonmem]

🔗

template<class Allocator> void swap(basic_stacktrace<Allocator>& a, basic_stacktrace<Allocator>& b) noexcept(noexcept(a.swap(b)));

1

#

Effects: Equivalent to a.swap(b).

🔗

string to_string(const stacktrace_entry& f);

2

#

Returns: A string with a description of f.

3

#

Recommended practice: The description should provide information about the contained evaluation, including information fromf.source_file() and f.source_line().

🔗

template<class Allocator> string to_string(const basic_stacktrace<Allocator>& st);

4

#

Returns: A string with a description of st.

[Note 1:

The number of lines is not guaranteed to be equal to st.size().

— end note]

🔗

ostream& operator<<(ostream& os, const stacktrace_entry& f);

5

#

Effects: Equivalent to: return os << to_string(f);

🔗

template<class Allocator> ostream& operator<<(ostream& os, const basic_stacktrace<Allocator>& st);

6

#

Effects: Equivalent to: return os << to_string(st);