20 General utilities library [utilities]

20.21 Stacktrace [stacktrace]

20.21.4 Class template basic_­stacktrace [stacktrace.basic] Observers [stacktrace.basic.obs]

using const_iterator = implementation-defined;
The type models random_­access_­iterator ([iterator.concept.random.access]) and meets the Cpp17RandomAccessIterator requirements ([random.access.iterators]).
allocator_type get_allocator() const noexcept;
Returns: frames_­.get_­allocator().
const_iterator begin() const noexcept; const_iterator cbegin() const noexcept;
Returns: An iterator referring to the first element in frames_­.
If empty() is true, then it returns the same value as end().
const_iterator end() const noexcept; const_iterator cend() const noexcept;
Returns: The end iterator.
const_reverse_iterator rbegin() const noexcept; const_reverse_iterator crbegin() const noexcept;
Returns: reverse_­iterator(cend()).
const_reverse_iterator rend() const noexcept; const_reverse_iterator crend() const noexcept;
Returns: reverse_­iterator(cbegin()).
[[nodiscard]] bool empty() const noexcept;
Returns: frames_­.empty().
size_type size() const noexcept;
Returns: frames_­.size().
size_type max_size() const noexcept;
Returns: frames_­.max_­size().
const_reference operator[](size_type frame_no) const;
Preconditions: frame_­no < size() is true.
Returns: frames_­[frame_­no].
Throws: Nothing.
const_reference at(size_type frame_no) const;
Returns: frames_­[frame_­no].
Throws: out_­of_­range if frame_­no >= size().