xte ::array <T >::rend ()
Defined in header <xte/data/array.hpp> Definitions
#0With the same qualifiers as[[nodiscard ]]constexpr auto rend (this auto&& self )noexcept ;
self , returns a reverse iterator pointing one past the first element. May return nullptr if there are no elements.#1
Same as #0 but[[nodiscard ]]constexpr auto crend ()const noexcept ;
const -qualified.Example
Output:xte ::array array = {1 ,2 ,3 };for (auto iter =array .rbegin ();iter !=array .rend (); ++iter ) {std ::println ("{}" , *iter ); }
[View in Compiler Explorer]3 2 1