xte::array<T>::rbegin()

Defined in header <xte/data/array.hpp>


Definitions

#0
[[nodiscard]] constexpr auto rbegin(this auto&& self) noexcept;
With the same qualifiers as self, returns a reverse iterator starting at the last element, or .rend() if there are none.

#1
[[nodiscard]] constexpr auto crbegin() const noexcept;
Same as #0 but const-qualified.



Example

xte::array array = { 1, 2, 3 };
std::println("{}", *array.rbegin());
Output:
3
[View in Compiler Explorer]