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

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


Definitions

#0
[[nodiscard]] constexpr auto* begin(this auto&& self) noexcept;
With the same qualifiers as self, returns an iterator pointing to the first element or .end() if there are none.

#1
[[nodiscard]] constexpr const T* cbegin() const noexcept;
Same as #0 but const-qualified.



Example

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