GSP
Quick Navigator

Search Site

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

Support
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::span::rbegin(3) C++ Standard Libary std::span::rbegin(3)

std::span::rbegin - std::span::rbegin


constexpr reverse_iterator rbegin() const noexcept;


Returns a reverse iterator to the first element of the reversed span. It corresponds
to the last element of the non-reversed span. If the span is empty, the returned
iterator is equal to rend().


range-rbegin-rend.svg


(none)


Reverse iterator to the first element.


Constant.

// Run this code


#include <algorithm>
#include <iostream>
#include <iterator>
#include <span>


int main()
{
constexpr std::span<const char> code{ "@droNE_T0P_w$s@s#_SECRET_a,p^42!" };


auto hacker = [](const unsigned O) { return O-0141<120; };


std::copy_if(code.rbegin(), code.rend(),
std::ostream_iterator<const char>(std::cout), hacker);
}


password


rend returns a reverse iterator to the end
(C++20) (public member function)
rbegin returns a reverse iterator to the beginning of a container or array
crbegin (function template)
(C++14)

2022.07.31 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.