GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
* Sign Up! *

Support
Customer Portal
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::basic_stacktrace::rend,std::basic_stacktrace::crend(3) C++ Standard Libary std::basic_stacktrace::rend,std::basic_stacktrace::crend(3)

std::basic_stacktrace::rend,std::basic_stacktrace::crend - std::basic_stacktrace::rend,std::basic_stacktrace::crend


const_reverse_iterator rend() const noexcept; (1) (since C++23)
const_reverse_iterator crend() const noexcept; (2) (since C++23)


Returns a reverse iterator pointing past the last entry of the reversed
basic_stacktrace. It corresponds to the iterator preceding the first entry of the
original basic_stacktrace. This iterator acts as a placeholder, attempting to
dereference it results in undefined behavior.


range-rbegin-rend.svg


(none)


The end iterator of the reversed basic_stacktrace.


Constant.

// Run this code


#include <algorithm>
#include <iostream>
#include <stacktrace>


int main()
{
auto trace = std::stacktrace::current();
auto empty_trace = std::stacktrace{};


// Print stacktrace.
std::for_each(trace.rbegin(), trace.rend(),
[](const auto& f) { std::cout << f << '\n'; });


if (empty_trace.rbegin() == empty_trace.rend())
std::cout << "stacktrace 'empty_trace' is indeed empty.\n";
}


0x0000000000402A29 in ./prog.exe
__libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
0x0000000000402BA5 in ./prog.exe
stacktrace 'empty_trace' is indeed empty.


rbegin returns a reverse iterator to the beginning
crbegin (public member function)

2024.06.10 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.