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

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


Definitions

#0
[[nodiscard]] constexpr auto* end(this auto&& self) noexcept;
With the same qualifiers as self, returns an iterator pointing one past the last element. May return nullptr if there are no elements.

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



Example

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